我有问题风格取自哪里?
我已经创建了新的win8 metro应用程序,我不知道它从何处获取样式。 我改变了App.xaml样式文件的名称。我Style.xaml看起来像这样
<!-- Page layout roots typically use entrance animations and a theme-appropriate background color -->
<Style x:Key="LayoutRootStyle" TargetType="Panel">
<Setter Property="Background" Value="White"/>
<Setter Property="ChildrenTransitions">
<Setter.Value>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Setter.Value>
</Setter>
</Style>
但我仍得到了金信,我的按钮将变为白色,当我徘徊了。与默认相同StandardStyles.xaml
我在做什么错?或者它工作得很好?
另外 - 这是不同于WPF,我相信像BackgroundProperty依赖属性可以从视觉树祖先继承它的价值。在木星中,它需要在某处明确设置。 – 2012-08-15 05:24:59