Reputation: 547
I am developing a UWP app. I want to show some info about a specific button whenever a user moves the cursor to that button. Just like the below image. I need your help. How can I do this ?
Upvotes: 0
Views: 94
Reputation: 819
Something like this should work:
<Button x:Name="button" Content="Image ToolTip" HorizontalAlignment="Center">
<ToolTipService.ToolTip>
// put whatever you want to appear in tooltip here.
</ToolTipService.ToolTip>
</Button>
Upvotes: 4
Reputation: 2524
This is tooltip you can see documentation here : https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.tooltip
<!-- A button with a simple ToolTip. -->
<Button Content="Button with a simple ToolTip." ToolTipService.ToolTip="Simple ToolTip" />
Upvotes: 4