Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StubGlyphOptions.RandomizeColors Property

Gets or sets whether or not different hues of the same color are allowed.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[DefaultValue(true)]
public bool RandomizeColors { get; set; }

#Property Value

Type Default Description
Boolean true

true, to allow different hues of the same color; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to RandomizeColors
BarManager
.OptionsStubGlyphs .RandomizeColors
RibbonControl
.OptionsStubGlyphs .RandomizeColors
WinExplorerView
.OptionsStubGlyphs .RandomizeColors

#Remarks

If the RandomizeColors property is enabled, glyphs of the same colors can still slightly differ, as shown below.

StubGlyphs - Random Colors

To choose what colors are available for stub glyphs, utilize the StubGlyphOptions.ColorMode property. See Stub Glyphs to learn more.

See Also