Skip to main content

HamburgerSubMenu.UseDefaultSubMenuImageColorizer Property

Gets or sets whether the sub-menu’s glyph is colorized according to the foreground color.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

[Browsable(false)]
public bool UseDefaultSubMenuImageColorizer { get; set; }

Property Value

Type Description
Boolean

true, if the sub-menu’s glyph is colorized according to the foreground color; otherwise, false. The default is false.

Remarks

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