我需要更改gridcontrol的背景颜色,我在gridcontrol和CardView中尝试了“”,但我总是尝试白色。
答案 0 :(得分:1)
<Window ...
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys">
<Window.Resources>
<ControlTemplate x:Key="{dxgt:TableViewThemeKey IsThemeIndependent=true, ResourceKey=DataPresenterTemplate}" TargetType="{x:Type dxg:DataPresenter}">
<Border Background="Red">
<ContentPresenter />
</Border>
</ControlTemplate>
</Window.Resources>
<dxg:GridControl .../>
</Window>
取自http://www.devexpress.com/Support/Center/Question/Details/Q332901