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
- Subscribe to the MapShapeVisualizationCreated event of VisualizationLayer.
- 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);
}