Skip to main content

SchedulerControl.AppointmentFormServiceTemplate Property

Gets or sets the template which provides a service to display the custom Edit Appointment form.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public DataTemplate AppointmentFormServiceTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate object that defines the visual structure of the form.

#Remarks

The AppointmentFormServiceTemplate property can be used only when a new MVVM-based mechanism for form display is turned on. To activate this mechanism, set the SchedulerControl.FormCustomizationUsingMVVM or SchedulerControl.FormCustomizationUsingMVVMLocal property to true.

The template provided by the AppointmentFormServiceTemplate property must contain an object that is a descendant of the DevExpress.Mvvm.UI.ServiceBase class and implements the DevExpress.Mvvm.IDocumentManagerService interface. By default, this template contains the DevExpress.Xpf.Core.WindowedDocumentUIService. If the AppointmentFormServiceTemplate property contains null, or the template does not contain a DevExpress.Mvvm.UI.ServiceBase descendant implementing the DevExpress.Mvvm.IDocumentManagerService interface, the Edit Appointment form will not be shown.

For more information about services, refer to DevExpress MVVM Framework. Introduction to Services, DXMessageBoxService and DialogService.

See Also