Class CalendarItemTemplateSelector
Represents template selector for calendar item.
Inheritance
System.Object
CalendarItemTemplateSelector
Namespace: Syncfusion.UI.Xaml.Calendar
Assembly: Syncfusion.Calendar.WinUI.dll
Syntax
public class CalendarItemTemplateSelector : DataTemplateSelector
Constructors
CalendarItemTemplateSelector()
Initializes a new instance of the CalendarItemTemplateSelector class.
Declaration
public CalendarItemTemplateSelector()
Properties
DayTemplate
Gets or sets a value representing the appearance of day item.
Declaration
public DataTemplate DayTemplate { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
DecadeTemplate
Gets or sets a value representing the appearance of decade item.
Declaration
public DataTemplate DecadeTemplate { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
MonthTemplate
Gets or sets a value representing the appearance of month item.
Declaration
public DataTemplate MonthTemplate { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
WeekNameTemplate
Gets or sets a DataTemplate used to display the week name.
Declaration
public DataTemplate WeekNameTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DataTemplate | The default appearance will contain a textblock to show the week name. |
WeekNumberTemplate
Gets or sets a DataTemplate used to display the week number.
Declaration
public DataTemplate WeekNumberTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DataTemplate | The default appearance will contain a textblock to show the week number. |
YearTemplate
Gets or sets a value representing the appearance of year item.
Declaration
public DataTemplate YearTemplate { get; set; }
Property Value
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
Methods
SelectTemplateCore(Object)
Declaration
protected override DataTemplate SelectTemplateCore(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item |
Returns
Type |
---|
Microsoft.UI.Xaml.DataTemplate |
SelectTemplateCore(Object, DependencyObject)
Declaration
protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | |
Microsoft.UI.Xaml.DependencyObject | container |
Returns
Type |
---|
Microsoft.UI.Xaml.DataTemplate |