Creating Pop-up Window using ToolTip control in UWP

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.
  1. <Button Content="Hover over the Button" ToolTipService.ToolTip="Sample ToolTip" />  
  2.   
  3. <TextBlock Text="TextBlock with a ToolTip.">  
  4. <ToolTipService.ToolTip>   
  5. <ToolTip Content="Sample ToolTip." />  
  6. </ToolTipService.ToolTip>  
  7. </TextBlock>  
 

Step 2: Run your application and check yourself.

 
Ebook Download
View all
Learn
View all