wpf-devexpress-dot-xpf-dot-windowsui-dot-hamburgersubmenu-8f482c55.md
Gets or sets whether the sub-menu’s glyph is colorized according to the foreground color.
Namespace : DevExpress.Xpf.WindowsUI
Assembly : DevExpress.Xpf.Controls.v25.2.dll
NuGet Package : DevExpress.Wpf.Controls
[Browsable(false)]
public bool UseDefaultSubMenuImageColorizer { get; set; }
<Browsable(False)>
Public Property UseDefaultSubMenuImageColorizer As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if the sub-menu’s glyph is colorized according to the foreground color; otherwise, false. The default is false.
|
By default, if the ImageColorizer.IsEnabled attached property is set to true , the glyph is colorized according to the ImageColorizer.Color attached property. Set the UseDefaultSubMenuImageColorizer property to true to colorize the glyph according to the foreground color.
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
<!-- glyph is colorized according to the ImageColorizer.Color attached property -->
<dxwui:HamburgerSubMenu Glyph="{dx:DXImage Image=Properties_16x16.png}"
UseDefaultSubMenuImageColorizer="False"
dxb:ImageColorizer.Color="Red"
dxb:ImageColorizer.IsEnabled="True">
</dxwui:HamburgerSubMenu>
<!-- glyph is colorized according to the sub-menu's foreground color-->
<dxwui:HamburgerSubMenu Glyph="{dx:DXImage Image=Properties_16x16.png}"
UseDefaultSubMenuImageColorizer="True"
dxb:ImageColorizer.IsEnabled="True">
</dxwui:HamburgerSubMenu>
See Also