<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />
</ResourceDictionary.MergedDictionaries>
在PresentationFramework.Aero.NormalColor.xaml中有一个样式键入NavigationWindowForwardButtonStyle
我尝试将NavigationWindowForwardButtonStyle样式应用于我的按钮,如下所示但是错误
<Button Style="{StaticResource NavigationWindowForwardButtonStyle}" Margin="2,0,0,0" Grid.Column="1"/>
是否可以将我的按钮设置为键入的样式NavigationWindowForwardButtonStyle
答案 0 :(得分:1)
尝试使用DynamicResource而不是StaticResorce。