StripLineBase.Background Property
Gets or sets the strip line’s background color. This is a dependency property.
Namespace: DevExpress.Xpf.Gantt
Assembly: DevExpress.Xpf.Gantt.v24.1.dll
NuGet Package: DevExpress.Wpf.Gantt
Declaration
Property Value
Type | Description |
---|---|
Brush | A Brush object that is the strip line’s background color. |
Remarks
Use the Background property set a strip line background.
The Background property supports all types of brushes, such as SolidColorBrush, LinearGradientBrush etc.
<Window ...
xmlns:dxgn="http://schemas.devexpress.com/winfx/2008/xaml/gantt" />
<dxgn:GanttControl ItemsSource="{Binding Tasks}" >
<dxgn:GanttControl.View>
<dxgn:GanttView
x:Name="view" ... >
<dxgn:GanttView.StripLines>
<dxgn:StripLine
StartDate="08/14/2019 10:00:00"
Duration="5:0:0"
Background="#3FF5BD53"/>
</dxgn:GanttView.StripLines>
</dxgn:GanttView>
</dxgn:GanttControl.View>
</dxgn:GanttControl>
</Window>
See Also