New to Telerik UI for WPF? Download free 30-day trial

How to Increase Tooltip Duration for Items Added to Visualization Layer

Environment

Product Version 2019.1.116
Product RadMap for WPF

Description

How to increase the tooltip duration for the items in the VisualizationLayer.

Solution

  1. Subscribe to the MapShapeVisualizationCreated event of VisualizationLayer.
  2. Use the ToolTipService.SetShowDuration method to set the tooltip duration for the generated visual element. To get the visual element use the Visualization property of the event arguments.

private void VisualizationLayer_MapShapeVisualizationCreated(object sender, MapShapeOperationEventArgs e) 
{ 
    ToolTipService.SetShowDuration(e.Visualization, 1000); 
} 

See Also

In this article