Skip to main content

ChartRangeControlClient.LabelPattern Property

Gets or sets a format string that specifies ChartRangeControlClient label text.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP("", Handler = "AppearanceChanged")]
public string LabelPattern { get; set; }

Property Value

Type Description
String

The format string that specifies ChartRangeControlClient label text.

Remarks

Use the LabelPattern property to customize ChartRangeControlClient labels. A pattern can contain regular text (displayed as is) and the value placeholder in braces: {V}. You can use format specifiers to format numeric and date/time values.

If a pattern starts with a placeholder in the XAML markup, insert empty brackets into the beginning of the pattern as follows: “{}{V}”.

The example below uses the pattern {}{V:C} to display currency values:

<Controls:RangeControl Background="Transparent" ShowRangeThumbs="True" Margin="30,-10,30,15" Grid.Row="2">
    <Charts:ChartRangeControlClient Chart="{Binding ElementName=chart}"  LabelPattern="{}{V:C0}" />
</Controls:RangeControl>

Result:

DevExpress WinUI Range Control - Label Pattern

See Also