All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ResourceItem.Brush Property

Gets or sets the brush associated with the resource.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

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

Property Value

Type Description
Brush

A System.Windows.Media.Brush object used to paint the resource.

Remarks

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

Data Items Properties
Resources ResourceItem.Brush, ResourceMappings.Brush.
Labels AppointmentLabelItem.Brush, AppointmentLabelMappings.Brush.
Statuses AppointmentStatusItem.Brush, AppointmentStatusMappings.Brush.
Time Regions TimeRegionItem.Brush, TimeRegionMappings.Brush.

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

<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