ClassChartTooltipBehavior
Defines the tooltip behavior for RadChart.
Definition
Namespace:Telerik.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class ChartTooltipBehavior : ChartBehavior
Inheritance: objectChartBehaviorChartTooltipBehavior
Inherited Members
Constructors
ChartTooltipBehavior()
Initializes a new instance of the ChartTooltipBehavior class.
Declaration
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
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
public virtual bool HandleTooltipManually { get; }
Property Value
HorizontalAlignment
Gets or sets the alignment of the tooltip according to the touch point along the horizontal axis.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
HorizontalAlignment
IsOpen
Gets a value indicating whether the tooltip is currently displayed.
ShowDelay
Gets or sets the delay to be applied before the tooltip is displayed.
SnapToClosestPoint
Gets or sets a value indicating whether the tooltip will snap to the closest to the physical location data point.
TouchOverhang
Gets or sets the offset to be applied when the tooltip position is calculated.
Declaration
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
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalAlignment
Methods
GetContentTemplate(DependencyObject)
Gets the DataTemplate instance associated with the specified dependency object.
Declaration
public static DataTemplate GetContentTemplate(DependencyObject instance)
Parameters
instance
DependencyObject
Returns
DataTemplate
GetDataContext(Point, bool)
Gets ChartDataContext associated with a gives physical location.
Declaration
protected override ChartDataContext GetDataContext(Point physicalOrigin, bool findNearestPoints)
Parameters
physicalOrigin
Point
The relative physical position of the requested data context.
findNearestPoints
True to find the nearest points, if no points are found on the requested physical location.
Returns
Returns ChartDataContext object holding information for the requested physical location.
Overrides
OnHoldCompleted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnHoldCompleted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
Overrides
OnHoldStarted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnHoldStarted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
Overrides
OnLoaded()
This method is called when the chart owner is loaded.
Declaration
protected override void OnLoaded()
Overrides
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)
Parameters
args
ManipulationDeltaRoutedEventArgs
Overrides
OnPointerEntered(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerExited(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerMoved(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerPressed(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerReleased(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnUnloaded()
This method is called when the chart owner is removed from the visual tree.
Declaration
protected override void OnUnloaded()
Overrides
SetContentTemplate(DependencyObject, DataTemplate)
Sets the provided DataTemplate instance to the specified dependency object.
Declaration
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
protected void SetInteractionPoint(Point position)
Parameters
position
Point
ShowToolTip()
Updates and opens the tooltip.
Declaration
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
public event EventHandler<TooltipContextNeededEventArgs> ContextNeeded
Event Value