We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the Icon in Tabbed Window?

Platform: UWP |
Control: SfDockingManager |
.NET Framework: 4

In SfDockingManager user can set the image in Tabbed header, by using its SetIcon method.


The following code demonstrates the same.


Code Example : [Xaml]


<!--Setting icon in Tabbed Window -->
<ContentControl x:Name="SolutionExplorer" Layout:SfDockingManager.Header="Solution Explorer"  
Layout:SfDockingManager.SideInDockedMode="Right" Layout:SfDockingManager.DockState="Dock"  >
<Image Source="/Assets/image1.png" />
<ContentControl Name="Properties" Layout:SfDockingManager.Header="Properties" 
Layout:SfDockingManager.TargetNameInDockedMode="Solution Explorer" >
<Image Source="/Assets/image2.png" />


Code Example : [C#]


//Initialize image 
Image image = new Image();
Image image1 = new Image();
//Get Image 
image.Source = new BitmapImage(new Uri("ms-appx:///Assets/image1.png", UriKind.Absolute));
image1.Source = new BitmapImage(new Uri("ms-appx:///Assets/image2.png", UriKind.Absolute));
//Set Image to Tabbed Window 
SfDockingManager.SetIcon(Properties, image);
SfDockingManager.SetIcon(SolutionExplorer, image);






Sample : SfDockingManagerSample


2X faster development

The ultimate UWP UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile