Back to Devexpress

AppointmentStatusItem.Brush Property

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

latest3.6 KB
Original Source

AppointmentStatusItem.Brush Property

Gets or sets the brush used to fill the appointment status.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public Brush Brush { get; set; }
vb
Public Property Brush As Brush

Property Value

TypeDescription
Brush

A Brush object which represents the brush used for drawing an appointment status.

|

Remarks

The following properties allow you to explicitly set brushes used to paint scheduler resources, labels, statuses and time regions:

Data ItemsProperties
ResourcesResourceItem.Brush, ResourceMappings.Brush.
LabelsAppointmentLabelItem.Brush, AppointmentLabelMappings.Brush.
StatusesAppointmentStatusItem.Brush , AppointmentStatusMappings.Brush.
Time RegionsTimeRegionItem.Brush, TimeRegionMappings.Brush.

You can use the SchedulerControl.BrushSet property to define a custom set of brushes. See the example below.

xaml
<dxsch:SchedulerControl.BrushSet>
    <dxsch:BrushSet>
        <dxsch:BrushInfo Name="Red" Brush="Red"/>
        <dxsch:BrushInfo Name="Blue" Brush="Blue"/>
    </dxsch:BrushSet>
</dxsch:SchedulerControl.BrushSet>

You can then use the properties listed below to access a brush from SchedulerControl.BrushSet by its Name value:

The Brush properties have a higher priority than the BrushName properties. If both are specified, the Brush property value is used.

Refer to the Customize Colors topic for more information.

See Also

AppointmentStatusItem Class

AppointmentStatusItem Members

DevExpress.Xpf.Scheduling Namespace