0

请我需要更改网格控件的背景颜色,我在网格控件和 CardView 中尝试了“”,但尽管我总是尝试白色。

4

1 回答 1

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

于 2013-05-24T19:23:16.733 回答