īy default, a ToolTip is displayed centered above the pointer. Here's an example of using an Image in a ToolTip. You can use any object as the Content of a ToolTip. ToolTipService.SetToolTip(submitButton, toolTip) ToolTip.Content = "Create a new document" In code, use the ToolTipService.SetToolTip method to assign the ToolTip to an owner. In XAML, use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. The ToolTipService class provides static methods to display a ToolTip. Get the app from the Microsoft Store or get the source code on GitHubĪ ToolTip must be assigned to another UI element that is its owner. The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Open the WinUI 3 Gallery app and see the ToolTip in action. Don't put images that look like they are interactive inside the tooltip.Don't put interactive controls inside the tooltip. ![]() For example, don't put a tooltip on a button that shows the same text of the button. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |