Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1655
Adding image to tabItemEx dynamically
posted

I am creating tabItemEx dynamically in code behind( c#). for that tabItemEx how to add image to the header part?

Parents
  • 69686
    posted

    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. 

Reply Children