I've a view with a Ribbon-Control. Below the ribbon I've created a DockingSite. In its workspace, the application shall display DocumentWindows which contains controls like TextBoxes, ComboBoxes etc.
The ribbon contains buttons, let's say a button "Contacts" and a button "Products".
What I want to achieve is this:
If the button "Contacts" is clicked, the DocumentWindow "Contacts" with its controls should be displayed (means: added to the TabbedMDIContainer). The same with the buttton "Products".
Also: if the button "Contacts" will be clicked repeatedly, the "Contact"-DocumentWindow should be open only once or - if it is already opened but not in the foreground - should come in the front (10 clicks = 1 "Contacts"-DocumentWindow).
If the button "Products" will be clicked repeatedly, a new "Products"-DocumentWindow should be added on every click (10 clicks = 10 "Products"-DocumentWindows)
Could you please give me a helping hand how to realise that?
Thanks in advance