Bar

BarItem.LargeGlyph Property

Gets or sets the item's large image. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public ImageSource LargeGlyph { get; set; }
Public Property LargeGlyph As ImageSource

Property Value

Type Description
ImageSource

An ImageSource object that specifies the item's large image.

Remarks

You can assign glyphs to bar items with the following properties:

Property Glyph size
BarItem.Glyph 16*16
BarItem.LargeGlyph 32*32
BarItem.MediumGlyph 20*20

If both large and small images are assigned, the bar item's links will display either image, according to the settings provided by bar objects (a bar item, bar, menu and bar manager). For example, if a bar item link is displayed within a toolbar, the large image will be displayed. If a bar item link is displayed within sub-menus, small images will be used. The BarItem.MediumGlyph is used in the Ribbon's Simplified Mode.

See the BarItem.Glyph topic to learn more.

Control images can be automatically substituted for other images based on the app context (the system DPI setting, the application UI culture, paint theme and touch mode availability). See the following topic to learn more: Automatically Choosing Images Based on App Context.

Examples

This example shows how to create bar items and associate them with a custom Format category.

The following image shows the result:

E1543

Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Windows

Namespace WpfApplication3
    ''' <summary>
    ''' Interaction logic for App.xaml
    ''' </summary>
    Partial Public Class App
        Inherits Application

        Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs)

            DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
        End Sub
    End Class
End Namespace
See Also