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
2370
What triggers ActiveDocumentChanged?
posted

In my project, I want to be able to update the tabitemheader without giving that tab focus.  It appears that calling INotifyPropertyChanged method to update the UI is causing that tab to receive focus.  Is there a way to update an inactive tab without the tab receiving focus?

Thanks,

JON

Parents
No Data
Reply
  • 54937
    Offline posted

    There are 2 related ActivePane type properties. The ActivePane property of the xamDockManager essentially returns the ContentPane which contains the keyboard focus. The ActiveDocument of the DocumentContentHost represents the ContentPane within the DocumentContentHost that is active. The ActiveDocument doesn't necessarily have keyboard focus within it - you can have a different docked, unpinned or floating ContentPane that is the ActivePane that has keyboard focus or keyboard focus can be outside the DocumentContentHost. But if you have a ContentPane within the DocumentContentHost and it contains the keyboard focus then it will be both the ActivePane and ActiveDocument.

    To answer your specific question, the ActiveDocumentChanged is raised when the ActiveDocument of the DocumentContentHost changes. That can happen for many reasons. E.g. If the selected tab of a TabGroupPane containing the ActiveDocument changes, if a ContentPane within the DCH gets keyboard focus (in which case it will be both the ActivePane and the ActiveDocument), if the ContentPane that is the ActiveDocument is removed from the DCH or hidden, etc.

    What property of the tab are you changing that is causing it to get keyboard focus? Do you have a sample that demonstrates the issue?

Children