Class
ChartTooltipBehavior

Defines the tooltip behavior for RadChart.

Definition

Constructors

ChartTooltipBehavior()

Initializes a new instance of the ChartTooltipBehavior class.

Declaration

cs-api-definition
public ChartTooltipBehavior()

Fields

ContentTemplateProperty

Identifies the ContentTemplate attached property. Usually this property is used by chart series to define different tooltips on a per series basis.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentTemplateProperty

Field Value

DependencyProperty

Properties

HandleTooltipManually

Gets a value indicating whether the developer will manually handle when the tooltip will be shown and hidden.

Declaration

cs-api-definition
public virtual bool HandleTooltipManually { get; }

Property Value

bool

HorizontalAlignment

Gets or sets the alignment of the tooltip according to the touch point along the horizontal axis.

Declaration

cs-api-definition
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

IsOpen

Gets a value indicating whether the tooltip is currently displayed.

Declaration

cs-api-definition
public bool IsOpen { get; }

Property Value

bool

ShowDelay

Gets or sets the delay to be applied before the tooltip is displayed.

Declaration

cs-api-definition
public TimeSpan ShowDelay { get; set; }

Property Value

TimeSpan

SnapToClosestPoint

Gets or sets a value indicating whether the tooltip will snap to the closest to the physical location data point.

Declaration

cs-api-definition
public bool SnapToClosestPoint { get; set; }

Property Value

bool

TouchOverhang

Gets or sets the offset to be applied when the tooltip position is calculated.

Declaration

cs-api-definition
public Point TouchOverhang { get; set; }

Property Value

Point

VerticalAlignment

Gets or sets the alignment of the tooltip according to the touch point along the vertical axis.

Declaration

cs-api-definition
public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

Methods

GetContentTemplate(DependencyObject)

Gets the DataTemplate instance associated with the specified dependency object.

Declaration

cs-api-definition
public static DataTemplate GetContentTemplate(DependencyObject instance)

Parameters

instance

DependencyObject

Returns

DataTemplate

GetDataContext(Point, bool)

Gets ChartDataContext associated with a gives physical location.

Declaration

cs-api-definition
protected override ChartDataContext GetDataContext(Point physicalOrigin, bool findNearestPoints)

Parameters

physicalOrigin

Point

The relative physical position of the requested data context.

findNearestPoints

bool

True to find the nearest points, if no points are found on the requested physical location.

Returns

ChartDataContext

Returns ChartDataContext object holding information for the requested physical location.

Overrides ChartBehavior.GetDataContext(Point, bool)

HideTooltip()

Hides the tooltip.

Declaration

cs-api-definition
protected void HideTooltip()

OnHoldCompleted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnHoldCompleted(HoldingRoutedEventArgs args)

Parameters

args

HoldingRoutedEventArgs

Overrides ChartBehavior.OnHoldCompleted(HoldingRoutedEventArgs)

OnHoldStarted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnHoldStarted(HoldingRoutedEventArgs args)

Parameters

args

HoldingRoutedEventArgs

Overrides ChartBehavior.OnHoldStarted(HoldingRoutedEventArgs)

OnLoaded()

This method is called when the chart owner is loaded.

Declaration

cs-api-definition
protected override void OnLoaded()

Overrides ChartBehavior.OnLoaded()

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)

Parameters

args

ManipulationDeltaRoutedEventArgs

Overrides ChartBehavior.OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

OnPointerEntered(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerEntered(PointerRoutedEventArgs)

OnPointerExited(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerExited(PointerRoutedEventArgs)

OnPointerMoved(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerMoved(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerMoved(PointerRoutedEventArgs)

OnPointerPressed(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerPressed(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerPressed(PointerRoutedEventArgs)

OnPointerReleased(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerReleased(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerReleased(PointerRoutedEventArgs)

OnUnloaded()

This method is called when the chart owner is removed from the visual tree.

Declaration

cs-api-definition
protected override void OnUnloaded()

Overrides ChartBehavior.OnUnloaded()

SetContentTemplate(DependencyObject, DataTemplate)

Sets the provided DataTemplate instance to the specified dependency object.

Declaration

cs-api-definition
public static void SetContentTemplate(DependencyObject instance, DataTemplate template)

Parameters

instance

DependencyObject

template

DataTemplate

SetInteractionPoint(Point)

Sets the interaction point which will be used to calculate the tooltip's position.

Declaration

cs-api-definition
protected void SetInteractionPoint(Point position)

Parameters

position

Point

ShowToolTip()

Updates and opens the tooltip.

Declaration

cs-api-definition
protected void ShowToolTip()

Events

ContextNeeded

Fires before the tool tip of RadChart is shown so that the user can provide a custom view model which he/she can bind to in the ToolTipTemplate.

Declaration

cs-api-definition
public event EventHandler<TooltipContextNeededEventArgs> ContextNeeded

Event Value

EventHandler<TooltipContextNeededEventArgs>