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

ViewBase.Glyph Property

Gets or sets the bar item’s small icon for the current View. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public ImageSource Glyph { get; set; }

#Property Value

Type Description
ImageSource

A ImageSource object that specifies the small image displayed within the View‘s bar item.

#Remarks

The following properties allow you to create a custom ribbon button and a context menu item for a specific View:

This can be useful, for instance, when you have different views of the same type and want to differentiate between them in the Scheduler UI.

The following example demonstrates how to create a custom ribbon and menu item for the Month view:

<dx:ThemedWindow x:Class="WpfScheduler.MainWindow" 
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
    xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduling"
    <!------------------->

    <dxsch:SchedulerControl x:Name="scheduler" CommandBarStyle="Ribbon" ActiveViewIndex="0">
        <dxsch:MonthView Caption="Month"
                         Description="The Multi-Week view useful for long-term plans."
                         Glyph="{dx:DXImage Image=MonthView_16x16.png}" 
                         LargeGlyph="{dx:DXImage Image=MonthView_32x32.png}"/>
    </dxsch:SchedulerControl>

The following image shows the result:

WPFScheduler_CustomMonthButton

See Also