Class MonthCell
Represents a class which holds the information of cell in month view.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class MonthCell : SchedulerCellBase, ISchedulerCell, INotifyPropertyChanged, IDisposable
Constructors
MonthCell()
Initializes a new instance of the MonthCell class.
Declaration
public MonthCell()
Fields
AllowViewNavigationProperty
Identifies the AllowViewNavigation dependency property.
Declaration
public static readonly DependencyProperty AllowViewNavigationProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for AllowViewNavigation dependency property. |
ContentTemplateProperty
Identifies the ContentTemplate dependency property.
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for ContentTemplate dependency property. |
ContentTemplateSelectorProperty
Identifies the ContentTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ContentTemplateSelectorProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for ContentTemplateSelector dependency property. |
DayTypeProperty
Identifies the DayType dependency property.
Declaration
public static readonly DependencyProperty DayTypeProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty | The identifier for DayType dependency property. |
Properties
AllowViewNavigation
Gets a value indicating whether the Month view should navigate to the Day view when clicking on a month cell date.
Declaration
public bool AllowViewNavigation { get; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Remarks
This property's value will be considered based on AllowViewNavigation
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 System.Windows.DataTemplate that defines the visual representation of the month cell.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.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 |
---|---|
System.Windows.Controls.DataTemplateSelector | A custom System.Windows.Controls.DataTemplateSelector object that chooses the System.Windows.DataTemplate based on the resource and returns a System.Windows.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
public override void OnApplyTemplate()
OnContextMenuOpening(ContextMenuEventArgs)
Occurs when context menu on the element is opened.
Declaration
protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.ContextMenuEventArgs | e | Context menu event arguments. |
OnCreateAutomationPeer()
Methods to create automation peer for MonthCell class.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
System.Windows.Automation.Peers.AutomationPeer | Accessibility and automation for month cell. |
OnKeyDown(KeyEventArgs)
Occurs on key down.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The key event args. |
OnLongPressTimerTick(Object, EventArgs)
Raise when the element is long pressed by mouse.
Declaration
protected override void OnLongPressTimerTick(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Represents the System.Windows.Controls.ListViewItem. |
System.EventArgs | e | Contains all the information of event. |
Overrides
OnMouseDoubleClick(MouseButtonEventArgs)
Occurs on mouse double click.
Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The mouse button event args. |
OnMouseEnter(MouseEventArgs)
Occurs when the mouse pointer enters the cell.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The Mouse event arguments. |
Overrides
OnMouseLeave(MouseEventArgs)
Occurs when the mouse pointer leaves the cell.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The Mouse event arguments. |
Overrides
OnMouseLeftButtonUp(MouseButtonEventArgs)
Occurs on mouse left button up.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The mouse button event args. |
OnMouseRightButtonUp(MouseButtonEventArgs)
Occurs when the mouse right button is released.
Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The event arguments. |
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Occurs on preview mouse left button down.
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The mouse button event args. |
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
Occurs on preview mouse left button up.
Declaration
protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The mouse button event args. |
OnPreviewStylusDown(StylusDownEventArgs)
Occurs on preview stylus down.
Declaration
protected override void OnPreviewStylusDown(StylusDownEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.StylusDownEventArgs | e | The stylus down event args. |
OnPreviewStylusUp(StylusEventArgs)
Occurs on preview stylus up.
Declaration
protected override void OnPreviewStylusUp(StylusEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.StylusEventArgs | e | The stylus down event args. |
OnTouchDown(TouchEventArgs)
Occurs when a finger touches the cell while the finger is over this element.
Declaration
protected override void OnTouchDown(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.TouchEventArgs | e | The touch down event args. |