CrosshairLineStyle.LabelBackgroundColor Property

Gets or sets the background color the label uses.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll


public Color LabelBackgroundColor { get; set; }

Property Value

Type Description

The background color the label uses.


This example demonstrates how to set the ChartView hint behavior to crosshair, and how to specify the crosshair hint properties.

  1. Set the ChartView.Hint property to the Hint object, with the Enabled property set to True.
  2. Assign the CrosshairHintBehavior object to the Hint.Behavior property. Specify the GroupHeaderTextPattern and MaxSeriesCount properties to manage the crosshair cursor label content.
  3. Create a new HintStyle object and assign it to the Hint.Style property to customize the hint appearance. Assign the CrosshairLineStyle class instance with specified LabelBackgroundColor, Stroke, and TextStyle properties to the HintStyle.ArgumentLineStyle and HintStyle.ValueLineStyle properties to modify appearance of the hint lines and hint labels.
    <dxc:Hint Enabled="True">
                    GroupHeaderTextPattern="{} Year: {A$YYYY}"
                    MaxSeriesCount="3" />
                    <dxc:CrosshairLineStyle LabelBackgroundColor="#383c44"
                            <dxc:TextStyle Color="White"
                    <dxc:CrosshairLineStyle LabelBackgroundColor="#383c44"
                            <dxc:TextStyle Color="White"

Crosshair Line Properties

See Also