如果你正在寻找的系统DEFI为您的应用内德的价值观,看看这3类:
例(从MSDN):
Button btncsharp = new Button();
btncsharp.Content = "SystemFonts";
btncsharp.Background = SystemColors.ControlDarkDarkBrush;
btncsharp.FontSize = SystemFonts.IconFontSize;
btncsharp.FontWeight = SystemFonts.MessageFontWeight;
btncsharp.FontFamily = SystemFonts.CaptionFontFamily;
cv1.Children.Add(btncsharp);
OR,在XAML中:
<Button
FontSize="{x:Static SystemFonts.IconFontSize}"
FontWeight="{x:Static SystemFonts.MessageFontWeight}"
FontFamily="{x:Static SystemFonts.CaptionFontFamily}"
Background="{x:Static SystemColors.HighlightBrush}">
SystemFonts
</Button>
检查这些链接在MSDN更多:System.Windows.SystemFonts,System.Windows.SystemParameters,并System.Windows.SystemColors
快速提示:使用Visual Studio IntelliSence看到这些类属性的列表
什么你通过Windows标准的意思是样式?你能链接到你想要的图片吗? – 2010-01-20 11:18:35
http://windowsclient.net/wf/blogs/mhendersblog/Oct10Post/Figure1.png – rakete 2010-01-20 11:22:25
我假设这个应用程序将在Windows XP上运行?否则,默认样式在Windows Vista和Windows 7中显着更新。 – 2010-01-20 13:11:53