Back to Devexpress

BarManager.ToolbarGlyphSize Attached Property

wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-669294b1.md

latest5.0 KB
Original Source

BarManager.ToolbarGlyphSize Attached Property

Gets or sets whether a small or large image is displayed by bar item links within bars that belong to the current bar manager. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetToolbarGlyphSize(DependencyObject) and SetToolbarGlyphSize(DependencyObject, GlyphSize).

Returns

TypeDescription
GlyphSize

A GlyphSize value that specifies whether a small or large image is displayed by corresponding bar item links.

|

Remarks

If the ToolbarGlyphSize property is set to Default, and bar items in a toolbar have both a large and small images assigned, a large image will be displayed. Set the ToolbarGlyphSize property to Small, to display bar item links using small images.

You can override the bar manager’s ToolbarGlyphSize setting for individual bars (via the Bar.GlyphSize property) and individual bar items (via the BarItem.GlyphSize property).

See the BarItem.Glyph property to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ToolbarGlyphSize attachedproperty.

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-spreadsheet-assign-custom-in-place-editors/CS/WpfSpreadsheet_CustomCellEditors/MainWindow.xaml#L15

xml
<dxb:BarManager x:Name="barManager1" ToolbarGlyphSize="Small">
    <dxb:BarManager.Resources>

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L14

xml
<Grid>
    <dxb:BarManager x:Name="barManager1" ToolbarGlyphSize="Small">
        <dxb:BarManager.Resources>

dxrichedit-for-wpf-how-to-print-a-document-as-a-series-of-images/CS/SaveAsImage/MainWindow.xaml#L15

xml
<Grid>
    <dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
        <dxb:BarManager.Items>

wpf-richedit-embed-a-live-chart-into-a-document/CS/RichEdit_InsertChart/MainWindow.xaml#L15

xml
<Grid>
    <dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
        <dxb:BarManager.Items>

wpf-rich-text-editor-customize-context-menu/CS/ContextMenuCustomization/MainWindow.xaml#L20

xml
<dxb:BarManager x:Name="barManager1" ToolbarGlyphSize="Small">
    <dxb:BarManager.Items>

See Also

Glyph

LargeGlyph

BarItem.GlyphSize

Bar.GlyphSize

BarSubItem.SubItemsGlyphSize

BarLinkContainerItem.SubItemsGlyphSize

MenuGlyphSize

GetToolbarGlyphSize(DependencyObject)

SetToolbarGlyphSize(DependencyObject, GlyphSize)

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace