In order to add tooltip to a framework element, you need to declare ToolTipService.ToolTip property. For example

<Image Height=”32″ Width=”32″ x:Name=”ImgHome” Source=”Resources/Index.png” Cursor=”Arrow” ToolTipService.ToolTip=”Home”></Image>

Tooltip is not limited to text only. You can add images to be shown in tooltip.

<Image Height=”32″ Width=”32″ x:Name=”ImgHome” Source=”Resources/Index.png” Cursor=”Arrow”>

<ToolTipService.ToolTip>

<Image Source=”Resources/Tooltip.png” />

</ToolTipService.ToolTip>
</Image>

Adding tooltips in Silverlight

Leave a Reply

Your email address will not be published. Required fields are marked *