RibbonCustomItem.ToolTip Property
In This Article
Gets or sets the ribbon custom item’s tooltip. This is a dependency property.
Namespace: DevExpress.WinUI.Ribbon
Assembly: DevExpress.WinUI.Ribbon.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Object | The ribbon button’s tooltip. |
#Remarks
The default tooptip text of a ribbon item is equal to the item’s content:
#Display a Custom ToolTip
Pass an object to the ToolTip property to display a custom tooltip:
<Window ...
xmlns:dxr="using:DevExpress.WinUI.Ribbon"
xmlns:dxc="using:DevExpress.WinUI.Core">
<Grid>
<dxr:RibbonControl>
<dxr:RibbonControl.Tabs>
<dxr:RibbonTab Caption="Home">
<dxr:RibbonGroup Caption="File">
<dxr:RibbonCustomItem ItemType="Large" ToolTipTitle="Font Settings">
<!-- ... -->
<dxr:RibbonCustomItem.ToolTip>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Padding="0,5,0,10">
<Bold>Font Settings</Bold>
</TextBlock>
<TextBlock Grid.Row="1" TextWrapping="WrapWholeWords">
This section allows you to specify the following font properties:
</TextBlock>
<StackPanel Grid.Row="2">
<TextBlock Text="• Font family"/>
<TextBlock Text="• Style (bold, italic, underlined)"/>
<TextBlock Text="• Alignment (left, center, right)"/>
</StackPanel>
</Grid>
</dxr:RibbonCustomItem.ToolTip>
</dxr:RibbonCustomItem>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
<!-- ... -->
</dxr:RibbonControl>
</Grid>
</Window>
See Also