diff --git a/knowledge-base/tooltip-toolbar-items-pdfviewer-dotnet-maui.md b/knowledge-base/tooltip-toolbar-items-pdfviewer-dotnet-maui.md new file mode 100644 index 00000000..c6e36708 --- /dev/null +++ b/knowledge-base/tooltip-toolbar-items-pdfviewer-dotnet-maui.md @@ -0,0 +1,59 @@ +--- +title: Adding Tooltip to Toolbar Items in PDF Viewer for .NET MAUI +description: Learn how to define a tooltip with text for the toolbar items in PDF Viewer for .NET MAUI. +type: how-to +page_title: Define Tooltip for PDF Viewer Toolbar Items in .NET MAUI +meta_title: Define Tooltip for PDF Viewer Toolbar Items in .NET MAUI +slug: tooltip-toolbar-items-pdfviewer-dotnet-maui +tags: pdfviewer, .net-maui, tooltip, toolbaritems, buttontoolbaritemview, style, tooltipproperties.text +res_type: kb +--- + +## Environment + +| Version | Product | Author | +| --- | --- | ---- | +| 11.0.0 | Telerik UI for .NET MAUI PDF Toolbar | [Dobrinka Yordanova](https://www.telerik.com/blogs/author/dobrinka-yordanova) | + +## Description + +I want to add tooltips to the toolbar items in the PDF Viewer for .NET MAUI. How can I define a tooltip for the toolbar buttons? + +This knowledge base article also answers the following questions: +- How to set tooltip text for toolbar buttons in PDF Viewer for .NET MAUI? +- How to customize tooltips in the PDF Viewer toolbar? +- How to apply tooltip properties to `RadToolbar` items? + +## Solution + +The PDF Viewer toolbar inherits from `RadToolbar`, which allows the use of tooltips for toolbar items. To define a tooltip for toolbar items, set the `Style` property with a `TargetType` as `ButtonToolbarItemView` and use the `ToolTipProperties.Text` property. + +Here's an example: + +```xml + + + + + + + + + + + + + + + + + + +``` + +## See Also +- [PDF Viewer for .NET MAUI](https://docs.telerik.com/devtools/maui/controls/pdfviewer/overview) +- [Toolbar Control](https://docs.telerik.com/devtools/maui/controls/toolbar/overview)