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
160
Change Dock Manager Document Content Host Tab Index
posted

I'm using a Dock Manager in my Main.xaml file with a Document Content Host. The Document Content host has 4 tabs of different images. I have a user control outside of my Main.xaml that has a button that exposes the 4th tab in the Document Content Host of my Dock Manager.

I can get the 4th tab to be expsed, but I cannot get the SelectedIndex of the Document Content Host to allow for the 4th tab to be the focused tab.

How would I do this?  

Parents
  • 3520
    Offline posted

    Hello Mike,

     

    Thank you for your post. I have been looking into it and if I understood your requirements correctly what I can suggest is activating the content pane the selected tab holds. This can be achieved by using the ContentPane’s Activate() method and will result into focusing the first focusable element in your content pane, i.e. the image. I have implemented the described approach in the sample application I am attaching for your reference.

    If you have any further questions on this matter, please do not hesitate to let us know.

    SelectTabsProgramatically.zip
Reply Children