Skip to main content

SchedulerControl.BrushSet Property

Defines a set of brushes used to colorize the scheduler’s elements. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public BrushSet BrushSet { get; set; }

Property Value

Type Description
DevExpress.Xpf.Scheduling.BrushSet

A list of DevExpress.Xpf.Scheduling.BrushInfo objects.

Remarks

Use the following properties to access a brush from the BrushSet by its Name value:

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>
<dxsch:SchedulerControl.ResourceItems>
    <dxsch:ResourceItem BrushName="Red" />
</dxsch:SchedulerControl.ResourceItems>

The static DefaultBrushNames class contains names of default brushes. These brushes are theme-dependent. You can redefine a default brush as shown in the example below.

See the example below.

<dxsch:BrushInfo Name="{x:Static dxsch:DefaultBrushNames.Resource1}" Brush="Red"/>
See Also