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
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.
Example
This code snippet substitutes an appointment flyout with a custom label control, as illustrated below:
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-schedulercontrol-api-t224044
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;
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentFlyoutShowing event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.