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.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
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:
- ResourceItem.BrushName, ResourceMappings.BrushName
- AppointmentLabelItem.BrushName, AppointmentLabelMappings.BrushName
- AppointmentStatusItem.BrushName, AppointmentStatusMappings.BrushName
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