i received an error on the DocumentWindow.Activate method:
Quote:
System.InvalidOperationException was unhandled
Message="This operation is invalid since the DockingWindow has not yet been registered with a DockSite."
Source="ActiproSoftware.Docking.Wpf30"
StackTrace:
at ActiproSoftware.Windows.Controls.Docking.DockingWindow.Activate(Boolean focus)
at ActiproSoftware.Windows.Controls.Docking.DockingWindow.Activate()
- i add programmaticly a DocumentWindow to a TabbedMDIContainer. This works, the tab is added and works.
- Then i use the close button (x) of the tab. Document is closed, seems not present anymore in Items etc, so looks ok too.
- Then i add a new DocumentWindow with the same name. It creates a new documentWindow, adds this to the items van the TabbedMdicontainer.
Now i call Activate of the window, and this fails with the above error.