I am creating tabItemEx dynamically in code behind( c#). for that tabItemEx how to add image to the header part?
Hello,
One way would be to retemplate the TabItemEx element and create a ControlTemplate with an image inside it. You can bind the Source property of that image to the Tag of the TabItemEx. When creating the TabItemEx, you can set its Tag property to a BitmapImage object which will be your image source.
You can see an example for this in the XamFeatureBrowser under XamTabControl - Themes and Style - Customizing the XamTabControl.
Hope this helps.
I checked the example you mentioned. there it is done in xaml only not in code behind file.
Please can you send me the sample code?