Back to Devexpress

HintStyleBase Class

maui-devexpress-dot-maui-dot-charts-9930d957.md

latest3.6 KB
Original Source

HintStyleBase Class

The base class for styles that configure the appearance of ChartView and PieChartView hints.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class HintStyleBase :
    TextElementStyleBase

Remarks

The HintStyleBase class serves as a base class for the HintStyle and PieHintStyle classes and provides properties to customize the hint appearance. For example, you can change background color, paddings, or marker sizes for hint labels.

Example

This example shows how to customize the appearance of pie chart hints. To do this, assign a PieHintStyle object with the specified properties to the PieHint.Style property:

xml
<dxc:PieChartView>
    <dxc:PieChartView.Hint>
        <dxc:PieHint Enabled="True" ShowMode="OnTap">
            <dxc:PieHint.Style>
                <dxc:PieHintStyle BackgroundColor="#424651"
                                  MarkerSize="30"
                                  Padding="15,15,10,10"
                                  TextIndent="20"/>
            </dxc:PieHint.Style>
        </dxc:PieHint>
    </dxc:PieChartView.Hint>
</dxc:PieChartView>

Use the following properties of the PieHintStyle object to configure the hint appearance:

|

Property

|

Description

| | --- | --- | |

BackgroundColor

|

Gets or sets the hint label’s background color. This is a bindable property.

| |

Padding

|

Gets or sets the hint’s label padding. This is a bindable property.

| |

MarkerSize

|

Gets or sets the hint’s marker size. This is a bindable property.

| |

TextIndent

|

Gets or sets the indent between a hint marker and text. This is a bindable property.

|

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyleBase TextElementStyleBase HintStyleBase HintStyle

PieHintStyle

Extension Methods

Yield<HintStyleBase>()

YieldIfNotNull<HintStyleBase>()

See Also

HintStyleBase Members

DevExpress.Maui.Charts Namespace