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: