Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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