
I am looking to load a ToolWindow defined in an XAML resource file. Here is what it looks like:
This operation is invalid since the DockingWindow has not yet been registered with a DockSite.
If I do some fancy footwork prior to calling Dock and Open, I can get it to load properly:
Here is how I load the XAML file:
Loading the control is fine, the issue arises when I attempt to Dock the window to my DockSite. Calling Dock and then Open throws an exception:
This operation is invalid since the DockingWindow has not yet been registered with a DockSite.
If I do some fancy footwork prior to calling Dock and Open, I can get it to load properly:
My question is, how do I do this cleanly?!