)
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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind the header image of TabItemExt?

Platform: WPF |
Control: TabControlExt |
Published Date: May 31, 2018 |
Last Revised Date: May 31, 2018

User can bind the image to TabItemExt header. It can be achieved by binding the BitMabImage to Image property of TabItemExt. Here we have binding the BitMabImage to image of first TabItem. The following code demonstrates the same.

 

Code Example : [Xaml]

 

                                              

Code Example : [C#]

 

 

Screenshot

 

 

Sample: TabControlExtSample 

 

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Németh Péter
Dec 09, 2019

Hi,

What happens in this scenario?


Tabs is List

public class MyTabItem {
 // Tab Title
 public String Title { get ...
 // Tab Image
 public ImageSource Image {get ...
}

Regards, Peter

Reply
Németh Péter
Dec 09, 2019

The comment system strips everything what contents greater and less sign, so my XAML and Generic list striped. :o

The empty line from my previus comment:

syncfusion:TabControlExt x:Name="tabcontrol" ItemSource="{Binding Tabs}"

Tabs is List of MyTabitem

Reply
Niranjan Kumar Gopalan [Syncfusion]
Dec 09, 2019

Hi Németh Péter,

The data binding of TabControlExt has been well explained in help documentation given below. And we will update this KB soon. Documentation link : https://help.syncfusion.com/wpf/tabcontrol/databinding

Regards, Niranjan Kumar

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
Live Chat Icon