DevExpressWPF拥有120个控件和库,将帮助您交付满足甚至超出企业需求的高性能业务应用程序。通过DevExpressWPF能创建有着强大互动功能的XAML基础应用程序,这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。 DevExpressWPF组件包含超过30个定制设计的应用主题,开发人员可以再免费的WPFThemeDesigner(主题设计器)应用程序中使用这些主题而无需修改或自定义它们。 DevExpressWPFSubscription官方最新版免费下载试用,历史版本下载,在线文档和帮助文件下载慧都网 当开发人员在应用程序中引用DevExpressWPF库时,该应用程序将应用Office2019Colorful,此主题影响所有DevExpressWPF控件和支持的标准WPF控件,开发人员可以重置应用于标准WPF控件的DevExpress主题。 支持的WPF标准控件列表 下面的标准WPF控件支持DevExpressWPF主题。System。Windows。ButtonSystem。Windows。CheckBoxSystem。Windows。ComboBoxSystem。Windows。ComboBoxItemSystem。Windows。ContextMenuSystem。Windows。ExpanderSystem。Windows。GridSplitterSystem。Windows。GroupBoxSystem。Windows。LabelSystem。Windows。ListBoxSystem。Windows。ListBoxItemSystem。Windows。MenuSystem。Windows。PageSystem。Windows。PasswordBoxSystem。Windows。ProgressBarSystem。Windows。RadioButtonSystem。Windows。Controls。Primitives。ScrollBarSystem。Windows。ScrollViewerSystem。Windows。SeparatorSystem。Windows。SliderSystem。Windows。TabControlSystem。Windows。TabItemSystem。Windows。TextBoxSystem。Windows。ToolTipSystem。Windows。TreeViewSystem。Windows。TreeViewItem 这些控件仅在Office2016SE、VS2017、Office2019和VS2019主题中支持。应用一个DevExpress主题 要应用主题,必须在项目中引用主题程序集或主题NuGet包。方法1 打开Window或UserControl的快速操作或智能标记,展开ApplicationTheme下拉列表,并选择一个主题,该列表仅显示项目中引用的主题。 生成的App。config文件如下所示:。NET App。config。。。configurationconfigSectionssectionnameDXThemeManagertypeSystem。Configuration。ClientSettingsSection,System,Version4。0。0。0,Cultureneutral,PublicKeyTokenb77a5c561934e089allowExeDefinitionMachineToLocalUserrequirePermissionfalseconfigSectionsDXThemeManagersettingnameApplicationThemeNameserializeAsStringvalueOffice2019ColorfulvaluesettingDXThemeManagerconfiguration。。。。NETFramework App。configconfigurationconfigSectionssectionGroupnameuserSettingstypeSystem。Configuration。UserSettingsGroup,System,Version4。0。0。0,Cultureneutral,PublicKeyTokenb77a5c561934e089sectionnameDXThemeManagertypeSystem。Configuration。ClientSettingsSection,System,Version4。0。0。0,Cultureneutral,PublicKeyTokenb77a5c561934e089allowExeDefinitionMachineToLocalUserrequirePermissionfalsesectionGroupconfigSectionsstartupsupportedRuntimeversionv4。0sku。NETFramework,Versionv4。7。2startupuserSettingsDXThemeManagersettingnameApplicationThemeNameserializeAsStringvalueOffice2019ColorfulvaluesettingDXThemeManageruserSettingsconfiguration方法2 这种方法会覆盖使用方法1对App。config文件所做的更改。 1。引用DevExpress。Data。Desktop。v22。1程序集。 2。在应用程序启动时将ApplicationThemeHelper。ApplicationThemeName属性设置为一个主题名称。 CpublicpartialclassApp:Application{protectedoverridevoidOnStartup(StartupEventArgse){ApplicationThemeHelper。ApplicationThemeNameTheme。MetropolisLightName;base。OnStartup(e);}} VB。NETClassApplicationProtectedOverridesSubOnStartup(eAsStartupEventArgs)ApplicationThemeHelper。ApplicationThemeNameTheme。MetropolisLightNameMyBase。OnStartup(e)EndSubEndClass 提示:可以将RibbonGallery主题选择器添加到应用程序中。应用一个DevExpress主题到容器 指定附加的ThemeManager。ThemeName属性,开发人员可以将该属性应用到DevExpressWPF控件和受支持的WPF标准控件。下面的代码示例将Office2016SEWhite主题应用到ThemedWindow,将office20119black主题应用到GridControl: XAMLThemedWindow。。。xmlns:dxhttp:schemas。devexpress。comwinfx2008xamlcorexmlns:dxghttp:schemas。devexpress。comwinfx2008xamlgriddx:ThemeManager。ThemeNameOffice2016SEWhitedxg:GridControldx:ThemeManager。ThemeNameOffice2019Black。。。dxg:GridControlThemedWindow