DexExpress主题更改
2017-10-18 19:53
190 查看
修改主题的方式有很多种,这种应该是比较简单点。
首先在xaml界面上加入xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core",然后在Dev控件中添加dx:ThemeManager.ThemeName="Office2007Blue"就可以更改了。
下面以GridControl控件为例,简单介绍一下更改主题的方法,其他控件类似:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DXGrid_NewItemRow"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
x:Class="DXGrid_NewItemRow.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="300" Width="481">
<Grid>
<dxg:GridControl dx:ThemeManager.ThemeName="Office2007Blue" x:Name="grid" AutoGenerateColumns="AddNew" ItemsSource="{Binding PersonList}">
<dxg:GridControl.View>
<dxg:TableView x:Name="view" AutoWidth="True"
NewItemRowPosition="Top"
InitNewRow="TableView_InitNewRow"
ValidateRow="TableView_ValidateRow"
InvalidRowException="TableView_InvalidRowException" />
</dxg:GridControl.View>
</dxg:GridControl>
</Grid>
</Window>
可选主题有:
Office2007Black
LightGray
Office2007Blue
Office2007Silver
Office2007Black
Office2010Silver
Office2013
Office2016White
首先在xaml界面上加入xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core",然后在Dev控件中添加dx:ThemeManager.ThemeName="Office2007Blue"就可以更改了。
下面以GridControl控件为例,简单介绍一下更改主题的方法,其他控件类似:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DXGrid_NewItemRow"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
x:Class="DXGrid_NewItemRow.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="300" Width="481">
<Grid>
<dxg:GridControl dx:ThemeManager.ThemeName="Office2007Blue" x:Name="grid" AutoGenerateColumns="AddNew" ItemsSource="{Binding PersonList}">
<dxg:GridControl.View>
<dxg:TableView x:Name="view" AutoWidth="True"
NewItemRowPosition="Top"
InitNewRow="TableView_InitNewRow"
ValidateRow="TableView_ValidateRow"
InvalidRowException="TableView_InvalidRowException" />
</dxg:GridControl.View>
</dxg:GridControl>
</Grid>
</Window>
可选主题有:
Office2007Black
LightGray
Office2007Blue
Office2007Silver
Office2007Black
Office2010Silver
Office2013
Office2016White
相关文章推荐
- myeclipse10怎么更改主题
- 关于更改Zend Studio/Eclipse代码风格主题的介绍
- jekyll bootstrap更改主题theme
- Sublime Text 更改主题 详细图解
- openwrt 更改默认主题
- redmine如何更改更换主题 (redmine之三)
- Ubuntu10.04更改启动画面,关机画面,登录画面---用主题更改plymouth和GDM
- 当你原先设置好的桌面主题在下次开机或重启后被更改的时候你要注意了!!
- 关于更改Zend Studio/Eclipse代码风格主题的介绍
- 更改Zend Studio/Eclipse代码风格主题
- 更改Zend Studio/Eclipse代码风格主题
- 更改app的主题
- luci之如何更改界面的主题(themes)
- QTCreator 更改代码高亮主题为 VS+VA助手 风格
- Eclipse 更改 主题(theme)
- 更改Visual Studio 2010的主题设置
- 更改Zend Studio/Eclipse代码风格主题
- 更改Visual Studio 2010的主题设置
- CodeBlocks 16.01在CentOS 7下更改主题
- 更改Visual Studio 2010的主题设置[.vssettings格式]