Back to Devexpress

OptionsWindows.AppointmentWindowType Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-optionswindows.md

latest3.5 KB
Original Source

OptionsWindows.AppointmentWindowType Property

Gets or sets the type for the Appointment Window. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Type AppointmentWindowType { get; set; }
vb
Public Property AppointmentWindowType As Type

Property Value

TypeDescription
Type

A Type value indicating the window type.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AppointmentWindowType
SchedulerControl

.OptionsWindows .AppointmentWindowType

|

Remarks

Use the AppointmentWindowType property to replace the default dialog with a custom window.

Example

Set the OptionsWindows.AppointmentWindowType value to the type of a custom appointment editing window (HospitalAppointmentWindow). Set the OptionsWindows.RecurrenceWindowType value to the type of a custom recurrence window (HospitalRecurrenceWindow).

View Example

xaml
<dxsch:SchedulerControl.OptionsWindows>
    <dxsch:OptionsWindows AppointmentWindowType="{x:Type local:HospitalAppointmentWindow}" RecurrenceWindowType="{x:Type local:HospitalRecurrenceWindow}" />
</dxsch:SchedulerControl.OptionsWindows>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentWindowType 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.

wpf-scheduler-specify-custom-edit-and-recurrence-dialogs/CS/CustomMvvmFormWithRecurrenceExample/MainWindow.xaml#L40

xml
<dxsch:SchedulerControl.OptionsWindows>
    <dxsch:OptionsWindows AppointmentWindowType="{x:Type local:HospitalAppointmentWindow}" RecurrenceWindowType="{x:Type local:HospitalRecurrenceWindow}" />
</dxsch:SchedulerControl.OptionsWindows>

See Also

OptionsWindows Class

OptionsWindows Members

DevExpress.Xpf.Scheduling Namespace