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
265
Using XamTabControl in Prism
posted

I am using XamTabControl as a region in a Prism (WPF composite client) application. The desired behavior is that whenever I add a new view to the region - which translates to adding new tab to xamtabcontrol, the newly added tab should become active. I could not find a property or event on XamTabControl that captures that new tab addition. Am I missing something?

Parents
  • 54937
    Offline posted

    The xamTabControl is a derived ItemsControl and ItemsControl doesn't raise any events when items are added. You will likely have to handle this in your region adapter as you add items to the control.

Reply Children