Shakir Ahmed
Shakir Ahmed

Reputation: 547

How to Show Info About What This Button Does

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 ? enter image description here

Upvotes: 0

Views: 94

Answers (2)

Jeff Anderson
Jeff Anderson

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

Kobi
Kobi

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

Related Questions