Class MonthCell
Represents a class which holds the information of cell in month view.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.Scheduler.WinUI.dll
Syntax
public class MonthCell : SchedulerCellBase, ISchedulerCell, INotifyPropertyChanged, IDisposableConstructors
MonthCell()
Initializes a new instance of the MonthCell class.
Declaration
public MonthCell()Fields
ContentTemplateProperty
Identifies the ContentTemplate dependency property.
Declaration
public static readonly DependencyProperty ContentTemplatePropertyField Value
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DependencyProperty | The identifier for ContentTemplate dependency property. | 
ContentTemplateSelectorProperty
Identifies the ContentTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ContentTemplateSelectorPropertyField Value
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DependencyProperty | The identifier for ContentTemplateSelector dependency property. | 
DayTypeProperty
Identifies the DayType dependency property.
Declaration
public static readonly DependencyProperty DayTypePropertyField Value
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DependencyProperty | The identifier for DayType dependency property. | 
Properties
Appointments
Gets the appointments in MonthCell.
Declaration
public List<ScheduleAppointment> Appointments { get; }Property Value
| Type | 
|---|
| System.Collections.Generic.List<ScheduleAppointment> | 
ContentTemplate
Gets or sets the Microsoft.UI.Xaml.DataTemplate that defines the visual representation of the month cell.
Declaration
public DataTemplate ContentTemplate { get; set; }Property Value
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.DataTemplate | The object that defines the visual representation of the resource header view. The registered default is null. | 
ContentTemplateSelector
Gets or sets the template selector for choosing a template based on month cell.
Declaration
public DataTemplateSelector ContentTemplateSelector { get; set; }Property Value
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Controls.DataTemplateSelector | A custom Microsoft.UI.Xaml.Controls.DataTemplateSelector object that chooses the Microsoft.UI.Xaml.DataTemplate based on the resource and returns a Microsoft.UI.Xaml.DataTemplate. The default value is null. | 
DateText
Gets or sets the date text.
Declaration
public string DateText { get; set; }Property Value
| Type | 
|---|
| System.String | 
DayType
Gets or sets a value that specifies the type of the month day type. This is a bondable property.
Declaration
public MonthDayType DayType { get; set; }Property Value
| Type | 
|---|
| MonthDayType | 
Methods
Dispose(Boolean)
Disposes all the resources used by TimeSlotCell class.
Declaration
protected override void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | Indicates whether the call is from Dispose method or from a System.GC.SuppressFinalize(System.Object). | 
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
protected override void OnApplyTemplate()OnCreateAutomationPeer()
Methods to create automation peer for MonthCell class.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Automation.Peers.AutomationPeer | Accessibility and automation for month cell. | 
OnDoubleTapped(DoubleTappedRoutedEventArgs)
Occurs on mouse double click.
Declaration
protected override void OnDoubleTapped(DoubleTappedRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.DoubleTappedRoutedEventArgs | e | The mouse button event args. | 
OnHolding(HoldingRoutedEventArgs)
Invokes on month cell holding.
Declaration
protected override void OnHolding(HoldingRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.HoldingRoutedEventArgs | e | HoldingRoutedEventArgs. | 
OnKeyDown(KeyRoutedEventArgs)
Occurs on key down.
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.KeyRoutedEventArgs | e | The key event args. | 
OnLongPressTimerTick(Object, Object)
Raise when the element is long pressed by mouse.
Declaration
protected override void OnLongPressTimerTick(object sender, object e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | Represents the Microsoft.UI.Xaml.Controls.ListViewItem. | 
| System.Object | e | Contains all the information of event. | 
Overrides
OnPointerEntered(PointerRoutedEventArgs)
Invokes on pointer entered into scheduler cell.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer routed event arguments. | 
OnPointerExited(PointerRoutedEventArgs)
Invokes on pointer exited from scheduler cell.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | Pointer routed event arguments. | 
OnPointerPressed(PointerRoutedEventArgs)
Occurs on preview mouse left button down.
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | The mouse button event args. | 
OnPointerReleased(PointerRoutedEventArgs)
Occurs on preview mouse left button up.
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | The mouse button event args. | 
OnRightTapped(RightTappedRoutedEventArgs)
Occurs when the mouse right button is released.
Declaration
protected override void OnRightTapped(RightTappedRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.RightTappedRoutedEventArgs | e | The event arguments. | 
OnTapped(TappedRoutedEventArgs)
Occurs on mouse left button up.
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.TappedRoutedEventArgs | e | The mouse button event args. |