A newer version of this page is available. Switch to the current version.

SchedulerControl.AppointmentFlyoutShowing Event

Occurs before the appointment flyout is shown and allows you to substitute a flyout with another control.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public event AppointmentFlyoutShowingEventHandler AppointmentFlyoutShowing
Public Event AppointmentFlyoutShowing As AppointmentFlyoutShowingEventHandler

Event Data

The AppointmentFlyoutShowing event's data class is AppointmentFlyoutShowingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether the appointment flyout is not shown.
Control Allows you to set a control to display instead of default appointment flyout content.
FlyoutData Provides access to data displayed in the appointment flyout.

Remarks

The event arguments' AppointmentFlyoutShowingEventArgs.FlyoutData property contains data for display in a flyout or using a custom control.

Examples

This code snippet substitutes an appointment flyout with a custom label control, as illustrated below:

AppointmentFlyoutShowing

    scheduler.AppointmentFlyoutShowing += scheduler_AppointmentFlyoutShowing;
    scheduler.ActiveView.LayoutChanged();
public static void scheduler_AppointmentFlyoutShowing(object sender, AppointmentFlyoutShowingEventArgs e) {
    System.Windows.Forms.Label myControl = new System.Windows.Forms.Label();
    myControl.BackColor = Color.LightGreen;
    myControl.Size = new Size(200, 100);
    myControl.Text = e.FlyoutData.Subject;
    myControl.Font = new Font("Arial", 20);
    e.Control = myControl;
}
See Also