如何设置 DevExpress WPF GridControl 的外观和感觉?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12969906/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 05:49:56  来源:igfitidea点击:

How to Set DevExpress WPF GridControl Look And Feel?

wpfthemesdevexpressgridcontrol

提问by kiran


Can anybody help me with changing the look and feels for the DevExpress Grid Control.Right now I am getting a blue Grid Control , my best guess is that I need to change the default theme from DevExpress.Xpf.Themes.DeepBlue.v12.1 to something else.Can anybody help me with this.
Thanks in Advance


任何人都可以帮助我更改 DevExpress Grid Control 的外观和感觉。现在我得到了一个蓝色的 Grid Control,我最好的猜测是我需要更改 DevExpress.Xpf.Themes.DeepBlue.v12.1 的默认主题到别的东西。任何人都可以帮我解决这个问题。
提前致谢

回答by SeToY

XAML:

XAML:

    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    dx:ThemeManager.ThemeName="Office2007Black"> 

回答by DmitryG

You should only set the ThemeManager.ThemeNameproperty:

您应该只设置ThemeManager.ThemeName属性:

<Window x:Class="WpfApplication5.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
    Title="Window1" Height="300" Width="300" 
    dx:ThemeManager.ThemeName="Office2007Black"> 
    ...
</Window> 

Related link: DevExpress WPF Themes

相关链接:DevExpress WPF 主题