我买了一个TargetProperty="Button"
其中ControlTemplate
使用VisualStateManager
,一切工作正常,除了ColorAnimation
为BitmapIcon.Foreground
财产。的Windows Phone 8.1 RT ColorAnimation
我设置这样的:当我按下按钮
<ColorAnimation Storyboard.TargetName="PART_Icon"
Storyboard.TargetProperty="(BitmapIcon.Foreground).(SolidColorBrush.Color)"
To="Green"
Duration="0:0:0.100" />
什么也没有发生。所有其他ColorAnimations
在StoryBoard
给定VisualState
作品像一个魅力。
设置旧的方式从代码隐藏事件,但它的代码很多工作。
它不工作。 – CodeMonkey
你可以发布代码吗? –
也许你可以将位图图标作为按钮的内容,并尝试按钮的内容展示器的动画颜色。 –