SuperTip Class
Represents a SuperTip, which is capable of displaying multiple tooltip items.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Returned By
Properties that return SuperTip instances:
#Remarks
A SuperTip is an expandable tooltip, capable of displaying multiple tooltip items. The following is the list of the available tooltip item types:
- SuperTipItem - This tooltip item consists of content (SuperTipItem.Content) and glyph (SuperTipItem.Glyph) regions. It's possible to change the location of the glyph, relative to the content via the SuperTipItem.LayoutStyle property.
- SuperTipHeaderItem - This tooltip is designed to represent headers and footers within SuperTips. This item is similar to the SuperTipItem. The only difference is in the default appearance and indentation settings used to paint the item. By default, the item's text content is painted bold.
- SuperTipItemSeparator - Use this item to insert a separator between tooltip items.
The following image shows a sample SuperTip consisting of four tooltip items:
To create a SuperTip, add the required tooltip items to the SuperTip.Items collection. Tooltip items will be displayed according to their order in this collection.
#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>