C1.WPF.Schedule Namespace > C1Scheduler Class : AppointmentCustomAction Event |
'Declaration
Public Event AppointmentCustomAction As System.EventHandler(Of AppointmentActionEventArgs)
public event System.EventHandler<AppointmentActionEventArgs> AppointmentCustomAction
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 | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (Inherited from System.Windows.RoutedEventArgs) |
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; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2