I am trying to disable highlight when an item in ListBox is selected. That means, the item in the ListBox still fires the select event but it doesn't change the colour
kP outlined the procedure to apply highlighting here.
Windows Phone 7: Highlight Selected Listbox item
The procedure is pretty much the same to remove the highlighting.. you just delete the storyboard in the Selected Visual State from the copy you made of the template.
So..
<VisualState x:Name="Selected">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneAccentBrush}"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
to
<VisualState x:Name="Selected"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With