Skip to main content
A newer version of this page is available. .

SchedulerControl.AppointmentFormServiceTemplate Property

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

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v19.1.dll

Declaration

public DataTemplate AppointmentFormServiceTemplate { get; set; }

Property Value

Type Description
DataTemplate

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

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

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 ServiceBase class and implements the IDocumentManagerService interface. By default, this template contains the WindowedDocumentUIService. If the AppointmentFormServiceTemplate property contains null, or the template does not contain a ServiceBase descendant implementing the IDocumentManagerService interface, the Edit Appointment form will not be shown.

For more information about supported services, refer to the Services section.

For an example on how to substitute the standard Edit Appointment form with a custom one using the MVVM architectural pattern, refer to the Lesson 7 - Create a Custom Edit Appointment Form Using the MVVM Pattern (legacy) article.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentFormServiceTemplate property.

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.

See Also