Class MonthCell
Represents a class which holds the information of cell in month view.
Inheritance
System.Object
MonthCell
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class MonthCell : SchedulerCellBase, ISchedulerCell, INotifyPropertyChanged, IDisposable
Constructors
MonthCell()
Initializes a new instance of the MonthCell class.
Declaration
Fields
ContentTemplateProperty
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
ContentTemplateSelectorProperty
Declaration
public static readonly DependencyProperty ContentTemplateSelectorProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
DayTypeProperty
Declaration
public static readonly DependencyProperty DayTypeProperty
Field Value
Type |
Description |
System.Windows.DependencyProperty |
|
Properties
Appointments
Declaration
public List<ScheduleAppointment> Appointments { get; }
Property Value
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
Declaration
public string DateText { get; set; }
Property Value
Type |
Description |
System.String |
|
DayType
Gets or sets a value that specifies the type of the month day type. This is a bindable property.
Declaration
public MonthDayType DayType { get; set; }
Property Value
Methods
Dispose(Boolean)
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 finalizer.
|
Overrides
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
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
|
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
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
Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Occurs when the mouse right button is released.
Declaration
protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
Declaration
protected override void OnPreviewStylusDown(StylusDownEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.StylusDownEventArgs |
e |
|
Declaration
protected override void OnPreviewStylusUp(StylusEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.StylusEventArgs |
e |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable