I am working on Windows Phone 8 , I have a long list of selectors with several elements in it. When I click on the elements, I need to add some animation to it, move the text and go back. How to achieve this? I am also trying to apply them to a list.
I tried this:
<Style x:Key="LongListSelectorStyle1" TargetType="phone:LongListSelector"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <UserControl> <Border x:Name="MyBorder" Background="Transparent"> <VisualStateManager.VisualStateGroups > <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal" /> <VisualState x:Name="Selected"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background)" Storyboard.TargetName="MyBorder"> <DiscreteObjectKeyFrame KeyTime="0" Value="#000000"/> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> </Border> </UserControl> </DataTemplate> </Setter.Value> </Setter> </Style>
But it does not work.
Below is an example screenshot

How can i achieve this?
c # windows-phone wpf silverlight windows-phone-8
user2056563
source share