Which document is the active one?

Docking/MDI for WPF Forum

Posted 14 years ago by Arthur Damen
Avatar
Hi,
I have a docksite which contains 2 nested docksites (which contain an instance of the same usercontrol) in a tabbedmdi environment.
The user is able to click on a tab item in A or a certain tab item in B.

My question is how to detect what the active position is at a certain time.
For instance when a user clicks in the ribbon bar on new tab item, i do need to know if the user wants to Add this into A or B. Besides that there are functions where I also want to know which tab is the active one in combination with the A or B.

|----------------------------------------------|
| tabbedmdihost A |
| |
| |
| |
|----------------------------------------------|
|----------------------------------------------|
| tabbedmdihost B |
| |
| |
| |
|----------------------------------------------|

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arthur,

You could probably use the IsKeyboardFocusWithin property on A or B to know where focus is.

Then the DockSite.ActiveWindow property in your nested dock sites should tell you which "tab" has focus.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.