Class SchedulerContextMenuInfo
Represents the class that stores the information about the appointment, date time and scheduler associated to AppointmentContextMenu and CellContextMenu.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class SchedulerContextMenuInfo : Object, IDisposable
Constructors
SchedulerContextMenuInfo(SfScheduler, ScheduleAppointment, Nullable<DateTime>, SchedulerResource)
Initializes a new instance of the SchedulerContextMenuInfo class.
Declaration
public SchedulerContextMenuInfo(SfScheduler scheduler, ScheduleAppointment scheduleAppointment, Nullable<DateTime> dateTime, SchedulerResource resource)
Parameters
Type | Name | Description |
---|---|---|
SfScheduler | scheduler | The scheduler. |
ScheduleAppointment | scheduleAppointment | Contains the information about appointments. |
System.Nullable<System.DateTime> | dateTime | Contains the information about DateTime. |
SchedulerResource | resource | The resource. |
Properties
Appointment
Gets the ScheduleAppointment associated with AppointmentControl when the context menu opens over appointment view.
Declaration
public ScheduleAppointment Appointment { get; }
Property Value
Type |
---|
ScheduleAppointment |
Remarks
DateTime value will be null when opening context menu on time slot and month cell. When opening context menu of the occurrence appointment, it holds the occurrence appointment details. You can get the pattern appointment details from the occurrence appointment by using the GetPatternAppointment(SfScheduler, Object).
DateTime
Gets the date time of selected appointment or time slot or month cell where at the context menu is showing.
Declaration
public Nullable<DateTime> DateTime { get; }
Property Value
Type |
---|
System.Nullable<System.DateTime> |
Resource
Gets the SchedulerResource of selected appointment or time slot where at the context menu is showing.
Declaration
public SchedulerResource Resource { get; }
Property Value
Type |
---|
SchedulerResource |
Scheduler
Gets or sets the instance of SfScheduler.
Declaration
public SfScheduler Scheduler { get; set; }
Property Value
Type |
---|
SfScheduler |
Methods
Dispose()
Disposes all the resources used by the SchedulerContextMenuInfo class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the SchedulerContextMenuInfo class.
Declaration
protected virtual 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). |