How to set image in Splitter Page header for TabSplitter Control?
Image can be displayed in SplitterPage header by Image Property of TabSplitter
Control.
The same has been explained in the following code snippet:
XAML:
//Code Explains how to set image in Splitter Page header of TabSplitter Control <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=ā€¯Tabsplitter1.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid> <syncfusion:TabSplitter > <syncfusion:TabSplitterItem Header="tab1"> <syncfusion:TabSplitterItem.TopPanelItems> <syncfusion:SplitterPage Name="Splitterpage1" Header="split1" Image="download.jpg"> </syncfusion:SplitterPage> </syncfusion:TabSplitterItem.TopPanelItems> <syncfusion:TabSplitterItem.BottomPanelItems> <syncfusion:SplitterPage Header="split1" Image="download.jpg"> </syncfusion:SplitterPage> </syncfusion:TabSplitterItem.BottomPanelItems> </syncfusion:TabSplitterItem> </syncfusion:TabSplitter> </Grid> </Window>
C#:
//Code Explains how to set image in Splitter Page header of TabSplitter Control namespace TabSplitter1 { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); BitmapImage bi3 = new BitmapImage(); bi3.BeginInit(); bi3.UriSource = new Uri("/download.jpg", UriKind.Relative); bi3.EndInit(); Splitterpage1.Image = bi3; } } }
Output:
Conclusion
I hope you enjoyed learning about how to set image in Splitter Page header for TabSplitter Control.
You can refer to our WPF TabSplitter feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF TabSplitter documentation to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!