Back to Devexpress

DXCalendar.MonthCellTemplate Property

maui-devexpress-dot-maui-dot-editors-dot-dxcalendar-1fcf6ca7.md

latest1.5 KB
Original Source

DXCalendar.MonthCellTemplate Property

Gets or sets a data template used to render months. This is a bindable property.

Namespace : DevExpress.Maui.Editors

Assembly : DevExpress.Maui.Editors.dll

NuGet Package : DevExpress.Maui.Editors

Declaration

csharp
public DataTemplate MonthCellTemplate { get; set; }

Property Value

TypeDescription
DataTemplate

The template.

|

Remarks

Click the month in the calendar header to switch the calendar to Month view.

The CalendarCellData class specifies the binding context for the MonthCellTemplate. You can use CalendarCellData properties to implement the template.

xaml
<dxe:DXCalendar.MonthCellTemplate>
    <DataTemplate>
        <Label Text="{Binding Date, StringFormat='{0:MMM}'}" TextColor="Green"
                   FontSize="16" FontAttributes="Bold"/>
    </DataTemplate>
</dxe:DXCalendar.MonthCellTemplate>

See Also

DXCalendar Class

DXCalendar Members

DevExpress.Maui.Editors Namespace