Scheduler for UWP | ComponentOne
C1.Xaml.Schedule Namespace / C1Scheduler Class / UserAddingAppointment Event

In This Topic
    UserAddingAppointment Event
    In This Topic
    Occurs before the Edit Appointment dialog appears on the screen as a result of:
    • a double-click on the control area in one of the default control views,
    • the NewAppointmentDialog method call,
    • a NewAppointmentDialogCommand command.
    Syntax
    'Declaration
     
    
    <C1DescriptionAttribute("C1Scheduler.UserAddingAppointment", "Occurs before the Edit Appointment dialog appears on a screen for adding a new appointment.")>
    <C1CategoryAttribute("Appointment")>
    Public Event UserAddingAppointment As EventHandler(Of AddingAppointmentEventArgs)
    [C1Description("C1Scheduler.UserAddingAppointment", "Occurs before the Edit Appointment dialog appears on a screen for adding a new appointment.")]
    [C1Category("Appointment")]
    public event EventHandler<AddingAppointmentEventArgs> UserAddingAppointment
    Event Data

    The event handler receives an argument of type AddingAppointmentEventArgs containing data related to this event. The following AddingAppointmentEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets an Appointment object.  
    Gets or sets a value that indicates the present state of the event handling. (Inherited from C1.Xaml.Schedule.AppointmentActionEventArgs)
    (Inherited from Windows.UI.Xaml.RoutedEventArgs)
    Remarks
    Use this event to make custom settings to a new appointment before it appears on the screen and/or to implement your own reaction on this event, instead of activating a standard dialog window.

    In order to change appointment properties before showing the dialog on a screen, use the appointment object referenced by the e.Appointment event argument.

    To prevent activating a standard dialog window, set the e.Handled event argument to True.

    See Also