# Hide Empty Tooltips in SelectionBoxTemplate

## Environment

<table>
	<tbody>
		<tr>
			<th scope="row">Product Version</th>
			<td>2019.3 1216</td>
		</tr>
		<tr>
			<th scope="row">Product</th>
			<td>RadComboBox for WPF</td>
		</tr>
	</tbody>
</table>

## Description

How to show SelectionBox tooltip only when the tooltip has content.

## Solution

To achieve the desired result, you can add a **DataTrigger** to set the **Tooltip** to **null** when the corresponding property is an empty string. For example, you can define the [SelectionBoxTemplate](https://www.telerik.com/products/wpf/documentation/controls/radcombobox/features/populating-with-data-selectionbox) as follows:

```XAML
	<DataTemplate x:Key="SelectionBoxTemplate">
		<TextBlock Text="{Binding Name}">
			<TextBlock.Style>
				<Style TargetType="TextBlock">
					<Setter Property="ToolTip" Value="{Binding Tooltip}" />
					<Style.Triggers>
						<DataTrigger Binding="{Binding Tooltip}" Value="">
							<Setter Property="ToolTip" Value="{x:Null}" />
						</DataTrigger>
					</Style.Triggers>
				</Style>
			</TextBlock.Style>                    
		</TextBlock>
	</DataTemplate>
```

## See Also

* [Selection Box Template](https://www.telerik.com/products/wpf/documentation/controls/radcombobox/features/populating-with-data-selectionbox)
