MonthView.StyleSettings Property
Specifies the style settings that control the appearance of the Month View visual elements.
Namespace: DevExpress.UI.Xaml.Scheduler
Assembly: DevExpress.UI.Xaml.Scheduler.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Property Value
Type | Description |
---|---|
DevExpress.UI.Xaml.Scheduler.Internal.IMonthViewStyleSettings | An object implementing the DevExpress.UI.Xaml.Scheduler.Internal.IMonthViewStyleSettings interface. |
Remarks
The example below illustrates how to customize the cell appearance:
<dxsch:SchedulerControl.Views>
<dxsch:MonthView>
<dxsch:MonthView.StyleSettings>
<dxsch:MonthViewStyleSettings>
<dxsch:MonthViewStyleSettings.CellTemplate>
<DataTemplate x:DataType="schi:MonthCellViewModel" x:DefaultBindMode="OneWay">
<Border Background="{x:Bind IsSelected, Converter={StaticResource monthSelectionToBrushConverter}}">
<StackPanel VerticalAlignment="Top" Orientation="Horizontal">
<Button>Custom content</Button>
<TextBlock Margin="5" Foreground="{ThemeResource SchedulerMonthViewCellForegroundBrush}" Text="{x:Bind DisplayText}" />
</StackPanel>
</Border>
</DataTemplate>
</dxsch:MonthViewStyleSettings.CellTemplate>
</dxsch:MonthViewStyleSettings>
</dxsch:MonthView.StyleSettings>
</dxsch:MonthView>
</dxsch:SchedulerControl.Views>
See Also