使用Phone Accent Brush时,Windows Phone按钮不按任何按键

时间:2013-08-12 16:36:18

标签: c# windows xaml windows-phone-8 windows-phone

我有使用Brush Phone Accent Brush的按钮,当我按下它们时,它们不会执行正常的按钮动画。我已将ClickMode更改为所有3个选项,没有区别。 这是否按预期工作? 这是按钮xaml

<Button x:Name="FishClear" Content="Clear" HorizontalAlignment="Left" Margin="0,12,0,0"    VerticalAlignment="Top" Height="78" Width="108" Background="{StaticResource PhoneAccentBrush}"/>
<Button x:Name="FishAdd" Content="Add" HorizontalAlignment="Left" Margin="362,12,-5,0" VerticalAlignment="Top" Height="78" Width="108" Click="FishAdd_Click" Background="{StaticResource PhoneAccentBrush}"/>

1 个答案:

答案 0 :(得分:2)

您需要为Button创建一个新模板并更改其中的颜色。

在混合中,选择您的按钮,单击菜单项“对象” - &gt;“编辑模板” - &gt;“编辑副本...”,然后创建一个新模板。更改正常状态的背景颜色。