BarItem.SuperTip Property
Gets or sets a SuperTip for the current bar item. This is a dependency property.
Namespace: DevExpress.Xpf.Bars
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Super |
A Super |
#Remarks
Bar items support regular tooltips and SuperTip objects. A regular hint can be specified via the BarItem.Hint property. This hint is in effect if no SuperTip is assigned.
Use SuperTip property to assign a SuperTip object to a bar item. A SuperTip is an expandable tooltip, capable of displaying multiple tooltip items. See SuperTip to learn more.
The BarManager.ShowScreenTips and BarItem.ShowScreenTip properties allow you to disable hints and SuperTips.
#Examples
The following example creates a SuperTip consisting of four items. For the second item, the default layout of the item's Content and Glyph is changed. The glyph is positioned to the right of the Content.
For the fourth item, the style is changed, so that the text is painted in gray.
The result is shown below:
<dxb:BarSplitButtonItem.SuperTip>
<dxc:SuperTip>
<!--Item 1-->
<dxc:SuperTipHeaderItem Content="New"/>
<!--Item 2-->
<dxc:SuperTipItem Content="Create a new document" Glyph="/BarsDemo;component/Images/Icons/new-32x32.png">
<!--Change the default layout-->
<dxc:SuperTipItem.LayoutStyle>
<Style TargetType="dxc:Items2Panel">
<Setter Property="Alignment" Value="Right"/>
<Setter Property="HorizontalIndent" Value="20"/>
</Style>
</dxc:SuperTipItem.LayoutStyle>
</dxc:SuperTipItem>
<!--Item 3-->
<dxc:SuperTipItemSeparator/>
<!--Item 4-->
<dxc:SuperTipItem Content="Opens a new document in a new tab" >
<!--Provide content template-->
<dxc:SuperTipItem.ContentTemplate>
<DataTemplate>
<TextBlock FontFamily="Calibri" Foreground="Gray" FontSize="11" Text="{Binding}"/>
</DataTemplate>
</dxc:SuperTipItem.ContentTemplate>
</dxc:SuperTipItem>
</dxc:SuperTip>
</dxb:BarSplitButtonItem.SuperTip>