Skip to main content
A newer version of this page is available. .

ChartRangeControlClient.Foreground Property

Gets or sets the brush used to paint ChartRangeControlClient label text.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "AppearanceChanged")]
public SolidColorBrush Foreground { get; set; }

Property Value

Type Description
SolidColorBrush

The brush that is used to paint ChartRangeControlClient label text.

Remarks

The following example customizes the ChartRangeControlClient appearance and sets the FontFamily property to Arial Narrow, the FontSize property to 14, and the Foreground and GridLinesBrush properties to Dark Blue:

<Controls:RangeControl x:Name="rangeControl" Background="Transparent" 
                       ShowRangeThumbs="True" Margin="30,-10,30,15" Grid.Row="2">
    <Charts:ChartRangeControlClient x:Name="rangeControlClient" 
                                    Chart="{Binding ElementName=chart}"  
                                    FontFamily="Arial Narrow" 
                                    FontSize="14"
                                    Foreground="DarkBlue" 
                                    GridLinesBrush="DarkBlue" />
</Controls:RangeControl>

Result:

Appearance customization of Chart Range Control Client

See Also