'Declaration
<C1DescriptionAttribute("C1Scheduler.AppointmentCustomAction", "Fired when a custom action of an Appointment executes.")> <C1CategoryAttribute("Appointment")> Public Event AppointmentCustomAction As EventHandler(Of AppointmentActionEventArgs)
[C1Description("C1Scheduler.AppointmentCustomAction", "Fired when a custom action of an Appointment executes.")] [C1Category("Appointment")] public event EventHandler<AppointmentActionEventArgs> AppointmentCustomAction
Event Data
The event handler receives an argument of type AppointmentActionEventArgs containing data related to this event. The following AppointmentActionEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Appointment | Gets an Appointment object. |
Handled | Gets or sets a value that indicates the present state of the event handling. |
OriginalSource | (Inherited from Windows.UI.Xaml.RoutedEventArgs) |
Remarks
To cancel default handling, set CancelAppointmentEventArgs.Cancel property to true.
Example
private void c1Scheduler1_AppointmentAdded(object sender, AppointmentActionEventArgs e) { // create a new action Action action = new Action(); action.Command = "https://www.grapecity.com/en/componentone"; // set appointment action e.Appointment.Action = action; }
See Also