# How to Increase Tooltip Duration for Items Added to Visualization Layer

## Environment

<table>
    <tbody>
	    <tr>
	    	<th scope="row">Product Version</th>
	    	<td>2019.1.116</td>
	    </tr>
	    <tr>
	    	<th scope="row">Product</th>
	    	<td>RadMap for WPF</td>
	    </tr>
    </tbody>
</table>

## 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.

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

## See Also

* [VisualizationLayer](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/visualization-layer/introduction)
* [ToolTipService](https://www.telerik.com/products/wpf/documentation/controls/radtooltip/getting-started)
* [MapShapeVisualizationCreated](https://www.telerik.com/products/wpf/documentation/controls/radmap/features/visualization-layer/input-events)
