点击获取工具>>express
DevExpress WPF v20.2附带新的Visual Studio 2019主题调色板,一个受Windows 10启发的主题以及一个能够将Windows 10强调色应用于由DevExpress驱动的WPF应用程序的调色板。ide
Windows 10容许您指定自定义重点色,此颜色更改应用程序总体外观。如今您能够使用v20.2将Windows 10强调色应用于WPF应用程序。函数
(若是您不熟悉WPF产品系列,请务必查看咱们完整的WPF Themes集合)。工具
WPF Windows 10 Light Theme利用Windows 10的最佳可视化属性,在Windows Explorer后对该主题进行了图案化,从WinUI中添加了一些外观元素,并将其扩展到整个DevExpress WPF UI控件/工具集。visual-studio
与Windows 10 Light Theme一块儿使用时,WPF Win10Palette容许您在WPF应用程序中复制Windows 10的外观。开发工具
WPF Win10Palette能够获取Windows 10的配色,并在用户每次更改配色时更新主题:spa
`protected override void OnStartup(StartupEventArgs e)
{
var accentpalette = new Win10Palette();
var customtheme = Theme.CreateTheme(accentpalette, Theme.Win10Light);
Theme.RegisterTheme(customtheme);
ApplicationThemeHelper.ApplicationThemeName = customtheme.Name;
base.OnStartup(e);
}`orm
您还能够指定自定义主题色,并在用户修改Windows 10主题色时禁用主题更新。 为此,只需建立一个新主题,将强调色传递给ActualAccentColor构造函数参数,而后将listenAccentColorChanges设置为false。 这将产生具备您自定义强调色的Windows 10 Light主题:blog
`protected override void OnStartup(StartupEventArgs e)
{
var accentpalette = new Win10Palette((Color)ColorConverter.ConvertFromString("#ffffb900"), false);
var customtheme = Theme.CreateTheme(accentpalette, Theme.Win10Light);
Theme.RegisterTheme(customtheme);
ApplicationThemeHelper.ApplicationThemeName = customtheme.Name;
base.OnStartup(e);
}`教程
在v20.1版本中,添加了三个受Visual Studio 2019启发的新主题。 使用v20.2,您能够将如下预约义主题应用于Visual Studio 2019启发的主题:
Dark: BlueberryCake, DeepSea, Dimmed, Sand, Storm.
Light: Berberis, Cornflower, EmeraldSea, LightLilac, Loft.