Back to Devexpress

BarItem.GlyphAlignment Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-2dfbf4cd.md

latest2.4 KB
Original Source

BarItem.GlyphAlignment Property

Gets or sets the alignment of the current bar item’s image. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public Dock GlyphAlignment { get; set; }
vb
Public Property GlyphAlignment As Dock

Property Value

TypeDescription
Dock

A Dock value that specifies the alignment of the bar item’s image.

|

Remarks

Use the GlyphAlignment property to specify the position of the current bar item’s glyph.

Note

Setting this property has no effect if the current bar item is used within the RibbonControl or RibbonStatusBarControl.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GlyphAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-bars-mvvm-generate-bars-from-view-model-collection/CS/DXSample/MainWindow.xaml#L24

xml
Glyph="{Binding Glyph}"
GlyphAlignment="Top"
BarItemDisplayMode="ContentAndGlyph"

See Also

Glyph

LargeGlyph

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace