vod*_*ang 5 listbox highlight selection windows-phone-7
我正在尝试在选择ListBox中的项目时禁用突出显示.这意味着,ListBox中的项仍然会触发select事件,但它不会更改颜色
kP概述了在此处应用突出显示的过程.
删除突出显示的过程几乎相同..您只需从您为模板制作的副本中删除所选视觉状态中的故事板.
所以..
<VisualState x:Name="Selected">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneAccentBrush}"/>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
Run Code Online (Sandbox Code Playgroud)
至
<VisualState x:Name="Selected"/>
Run Code Online (Sandbox Code Playgroud)