Back to Devexpress

HintBase Class

mobilecontrols-devexpress-dot-xamarinforms-dot-charts-a8005b59.md

latest2.8 KB
Original Source

HintBase Class

The base class for ChartView and PieChartView hints.

Namespace : DevExpress.XamarinForms.Charts

Assembly : DevExpress.XamarinForms.Charts.dll

NuGet Package : DevExpress.XamarinForms.Charts

Declaration

csharp
public abstract class HintBase :
    StyledElement

Remarks

The HintBase class provides properties that enable hints in a chart (Enabled) and specify a gesture on which the chart shows the hint (ShowMode).

You can also manage hint behavior via code. Use the ShowHint and HideHint methods to display or hide hints in the chart.

Any time a hint is shown or hidden, the HintShown or HintHidden event occurs.

Example

This example shows how to enable hints for a pie chart.

  1. Create a new PieHint object and assign it to the PieChartView.Hint property.
  2. Set the Enabled property to True.
  3. Use the ShowMode property to specify a gesture on which the pie chart shows the hint.
xml
<dxc:PieChartView>
  <!--...-->
  <dxc:PieChartView.Hint>
    <dxc:PieHint Enabled="True" ShowMode="OnTap" />
  </dxc:PieChartView.Hint>
</dxc:PieChartView>

Implements

INotifyPropertyChanged

Inheritance

Object ChartElement StyledElement HintBase Hint

PieHint

See Also

HintBase Members

DevExpress.XamarinForms.Charts Namespace