这是我的 xaml,不会为任何 devexpress 控件呈现背景属性。如何覆盖内置属性。
<dxb:ToolBarControl ShowBackground="False" Grid.Row="0" HorizontalAlignment="Stretch"
VerticalAlignment="Top"
AllowCustomizationMenu="True"
BarItemDisplayMode="ContentAndGlyph" UseWholeRow="True"
AllowHide="False" AllowQuickCustomization="False" RotateWhenVertical="False">
<dxb:ToolBarControl.Background>
<LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
<GradientStop Color="#a9546a" Offset="0.1" />
<GradientStop Color="#b4506d" Offset="0.2" />
<GradientStop Color="#9e3763" Offset="0.3" />
<GradientStop Color="#ac4362" Offset="0.5" />
<GradientStop Color="#8a3470" Offset="0.75" />
<GradientStop Color="#753c83" Offset="1.0" />
</LinearGradientBrush>
</dxb:ToolBarControl.Background>
</dxb:ToolBarControl>