Skip to main content

BaseLayoutItem.ToolTip Property

Gets or sets a tool tip, displayed at runtime when hovering a BaseLayoutItem‘s caption or tab caption. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.1.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public object ToolTip { get; set; }

Property Value

Type Description
Object

A System.Object specifying a tool tip, displayed at runtime when hovering a BaseLayoutItem‘s caption or tab caption.

Remarks

Generally, you use a string to specify the ToolTip property. You can also set any other visual control as a tooltip.

Example

This example shows how to display a SuperTip as a BaseLayoutItem‘s tooltip, specified by the BaseLayoutItem.ToolTip property.

Note

Setting a SuperTip object directly as a BaseLayoutItem‘s tooltip is not supported, so you need to wrap a Super Tip object with a DevExpress.Xpf.Core.SuperTipControl container.

The result is shown in the following figure:

DXDocking Using A Supertip As A Tooltip

xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
...
<dxdo:LayoutPanel FloatOnDoubleClick="True" AllowSelection="True" Caption="Properties" Name="lpProperties">
    <dxdo:LayoutPanel.ToolTip>
        <dxc:SuperTipControl>
            <dxc:SuperTip>
                <dxc:SuperTipHeaderItem Content="Properties"/>
                <dxc:SuperTipItem Content="Configure your settings"/>
                <dxc:SuperTipItemSeparator/>
                <dxc:SuperTipItem Content="Opens application settings window. See the 'Help' section for more information" >
                    <!--Provide content template-->
                    <dxc:SuperTipItem.ContentTemplate>
                        <DataTemplate>
                            <TextBlock FontFamily="Calibri" Foreground="Gray" FontSize="11" Text="{Binding}"/>
                        </DataTemplate>
                   </dxc:SuperTipItem.ContentTemplate>
                </dxc:SuperTipItem>
            </dxc:SuperTip>
        </dxc:SuperTipControl>
    </dxdo:LayoutPanel.ToolTip>
</dxdo:LayoutPanel>
See Also