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
460
How can you capture the clicking of the tab in the split pane configuration
posted
Hi, I have modified the TabHeaderTemplate to put a text box in the tab so I can change the templates at run time. How can I determine when a tab is clicked so I can change the template. When the user clicks on either tab I want to do something visual. here is the xaml Click Me 2 Click Me 1
Parents
No Data
Reply
  • 54937
    Offline posted

    We don't raise any specific events for that but PaneTabItem is just a derived TabItem so maybe you can catch the MouseUp event on the xamDockManager and any PaneToolWindow (i.e. hook/unhook in the ToolWindowLoaded/Unloaded) and check if the e.OriginalSource is within a PaneTabItem by walking up the visual tree.

Children
No Data