This project has moved and is read-only. For the latest updates, please go here.
1
Vote

ListPicker - Windows Phone 8 VisualState "Expanded" does not work

description

I'm trying to create style for ListPicker on Windows Phone 8 dependent on VisualState (Normal and Expanded). And I have got problem. When there is Expanded elements from the VisualState from style is not set. I used the same code on Windows Phone 7 and 8 and on WP7 it works. Part of my code that have no effect:
<VisualStateGroup x:Name="PickerStates">
    <VisualState x:Name="Normal"/>
    <VisualState x:Name="Expanded">
        <Storyboard>
            <ObjectAnimationUsingKeyFrames
                    Storyboard.TargetName="Border"
                    Storyboard.TargetProperty="BorderBrush"
                    Duration="0">
                <DiscreteObjectKeyFrame
                    Value="Red"
                    KeyTime="0"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </VisualState>
</VisualStateGroup>
And yes - I have set this style to ListPicker. It really doesn't work. Copy-paste to WP7 project works.

comments