Back to Devexpress

HamburgerSubMenu.UseDefaultSubMenuImageColorizer Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-hamburgersubmenu-8f482c55.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
[Browsable(false)]
public bool UseDefaultSubMenuImageColorizer { get; set; }
vb
<Browsable(False)>
Public Property UseDefaultSubMenuImageColorizer As Boolean

Property Value

TypeDescription
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.

xaml
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

HamburgerSubMenu Class

HamburgerSubMenu Members

DevExpress.Xpf.WindowsUI Namespace