Back to Devexpress

DayViewBase.AppointmentStyle Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-dayviewbase-a60b194e.md

latest2.8 KB
Original Source

DayViewBase.AppointmentStyle Property

Gets or sets the style of appointments in the Day View, Work Week View, and Week View. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Style AppointmentStyle { get; set; }
vb
Public Property AppointmentStyle As Style

Property Value

TypeDescription
Style

A Style object that represents a style to be applied to appointments.

|

Remarks

The AppointmentStyle property specifies the style that groups together properties, resources, and event handlers and shares them between instances of the target type.

Target Type : DevExpress.Xpf.Scheduling.Visual.DayAppointmentControl or the base DevExpress.Xpf.Scheduling.Visual.AppointmentControl.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentStyle 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-customize-appointment-appearance/CS/CustomizeAppointmentExample/MainWindow.xaml#L90

xml
<dxsch:DayView AppointmentContentTemplate="{StaticResource appointmentContentTemplate}"
               AppointmentStyle="{StaticResource appointmentStyle}"
               ShowAllDayArea="False"

See Also

CellStyle

AllDayAppointmentStyle

DayViewBase Class

DayViewBase Members

DevExpress.Xpf.Scheduling Namespace