Articles in this section
Category / Section

How to set ToolTip of TDI Window header in Document Container

1 min read

ToolTip can be set to TDI (Tabbed Document Interface) Window header by TabCaptionToolTip property for DocumentContainer.

The same has been explained in the following code snippet:

XAML:

//Code Explains how to set the tooltip of tab for DocumentContainer
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:Class="DocumentContainer1.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:DocumentContainer Name="Documentcontainer1" Mode="TDI">
<ContentControl Name="tab1" syncfusion:DocumentContainer.Header="Tab1"  syncfusion:DocumentContainer.TabCaptionToolTip="TabToolTip1">
</ContentControl>
<ContentControl Name="tab2" syncfusion:DocumentContainer.Header="Tab2" syncfusion:DocumentContainer.TabCaptionToolTip="TabToolTip2">
</ContentControl>
</syncfusion:DocumentContainer>
</Grid>
</Window>

 C#:

//Code Explains how to set the tooltip of tab for DocumentContainer
namespace DocumentContainer1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DocumentContainer.SetTabCaptionToolTip(tab1, "TabToolTip1");
DocumentContainer.SetTabCaptionToolTip(tab2, "TabToolTip2");
}
}
}

     

Output:

C:\Users\Ashok.Murugesan\Desktop\Navigation\tooltip.png

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied