如果你正在尋找的系統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