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
TabGroupPane's ContentPane in focus


How do I know which contentpane in a tabgrouppane is in focus. Is there an event attached to this?

  • 54937
    Offline posted

    If you're specifically asking about focus then you can use the WPF framework's focus related events (e.g. handle the Lost/GotKeyboardFocus) or check the IsKeyboardFocusWithin.If you mean which one represents the selected tab then no there is no event that is invoked on the ContentPane when an ancestor TabGroupPane has its SelectedItem changed. The TabGroupPane has a SelectionChanged but be careful because if you allow the user to drag the ContentPane then that may not be the parent of the pane if they drag it elsewhere, float it, etc. The TabGroupPane will not be moved.