Class SchedulerContextMenuInfo
Provides context information for scheduler context menus, including details about the associated scheduler instance, selected date or time, appointment, and resource.
Inheritance
Namespace: Syncfusion.Maui.Scheduler
Assembly: Syncfusion.Maui.Scheduler.dll
Syntax
public class SchedulerContextMenuInfo : Object
Remarks
This class is used when displaying the appointment and cell context menus in SfScheduler. It supplies relevant information to commands and event handlers to enable context menu interactions.
Constructors
SchedulerContextMenuInfo(SfScheduler, SchedulerResource, SchedulerAppointment, DateTime)
Initializes a new instance of the SchedulerContextMenuInfo class with the specified scheduler context details.
Declaration
public SchedulerContextMenuInfo(SfScheduler scheduler, SchedulerResource resource, SchedulerAppointment appointment, DateTime dateTime)
Parameters
| Type | Name | Description |
|---|---|---|
| SfScheduler | scheduler | The scheduler instance on which the context menu is opened. |
| SchedulerResource | resource | The resource associated with the context menu. |
| SchedulerAppointment | appointment | The appointment associated with the context menu. |
| System.DateTime | dateTime | The selected date and time corresponding to the scheduler cell. |
Properties
Appointment
Gets the appointment over which the context menu is opened.
Declaration
public SchedulerAppointment Appointment { get; }
Property Value
| Type |
|---|
| SchedulerAppointment |
DateTime
Gets the date and time representing the time slot, or month cell where the context menu is displayed.
Declaration
public DateTime DateTime { get; }
Property Value
| Type |
|---|
| System.DateTime |
Resource
Gets the resource associated with the selected appointment or scheduler cell.
Declaration
public SchedulerResource Resource { get; }
Property Value
| Type |
|---|
| SchedulerResource |
Scheduler
Gets the SfScheduler instance associated with the context menu.
Declaration
public SfScheduler Scheduler { get; }
Property Value
| Type |
|---|
| SfScheduler |