Tooltip represents a control that creates a pop-up window
that displays information for an element in the UI
Step 1: Open a blank app and add a Button and TextBlock with ToolTip control either from the toolbox or by copying the following XAML code into your grid.
- <Button Content="Hover over the Button" ToolTipService.ToolTip="Sample ToolTip" />
-
- <TextBlock Text="TextBlock with a ToolTip.">
- <ToolTipService.ToolTip>
- <ToolTip Content="Sample ToolTip." />
- </ToolTipService.ToolTip>
- </TextBlock>
Step 2: Run your application and check yourself.