windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-f4a13cac.md
Allows you to dynamically customize elements of appointment flyout rendered from HTML-CSS templates.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
public event EventHandler<CustomizeAppointmentFlyoutTemplateEventArgs> CustomizeAppointmentFlyoutTemplate
Public Event CustomizeAppointmentFlyoutTemplate As EventHandler(Of CustomizeAppointmentFlyoutTemplateEventArgs)
The CustomizeAppointmentFlyoutTemplate event's data class is CustomizeAppointmentFlyoutTemplateEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Appointment | Gets an appointment for which the flyout is invoked. |
| HtmlElement | Gets an HTML Element whose properties you need to customize. |
| Resource |
The following code snippet applies a custom CSS style to an appointment within the HTML-CSS template:
private void schedulerControl1_CustomizeAppointmentFlyoutTemplate(object sender, DevExpress.XtraScheduler.CustomizeAppointmentFlyoutTemplateEventArgs args) {
if ("Gym Training".Equals(args.Appointment.Subject)) {
args.HtmlElement.FindElementById("content").ClassName = "Red";
}
}
Private Sub schedulerControl1_CustomizeAppointmentFlyoutTemplate(sender As Object, args As DevExpress.XtraScheduler.CustomizeAppointmentFlyoutTemplateEventArgs) Handles schedulerControl1.CustomizeAppointmentFlyoutTemplate
If "Gym Training".Equals(args.Appointment.Subject) Then
args.HtmlElement.FindElementById("content").ClassName = "Red"
End If
End Sub
See Also