C1.Silverlight.Schedule.5
AppointmentCustomAction Event
Example 

Occurs immediately before a custom action of an C1.C1Schedule.Appointment object executes.
Syntax
'Declaration
 
Public Event AppointmentCustomAction As System.EventHandler(Of AppointmentActionEventArgs)
public event System.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.

PropertyDescription
AppointmentGets an Appointment object.  
HandledGets or sets a value that indicates the present state of the event handling.  
OriginalSource (Inherited from System.Windows.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 = "http://www.componentone.com";
	// set appointment action
	e.Appointment.Action = action;
}
See Also

Reference

C1Scheduler Class
C1Scheduler Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.