ViewBase.Caption Property

Gets or sets a caption for the current View‘s bar item. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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


public string Caption { get; set; }

Property Value

Type Description

A string that specifies the View item’s caption.


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" 

    <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}"/>

The following image shows the result:


See Also