我将Windows Phone 8应用移植到通用Windows商店。 从wp8替换静态主题资源的正确方法是什么(如PhoneFontFamilyNormal,PhoneFontSizeNormal,PhoneAccentBrush)。 窗口通用应用程序上是否有类似的主题列表,因此我可以覆盖这些值或者是否需要手动更改所有样式?谢谢。
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
答案 0 :(得分:0)
8.1上的资源名称略有不同。
e.g。
FontFamily="{ThemeResource PhoneFontFamilyNormal}"
FontSize="{ThemeResource ContentControlFontSize}"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"