Hello,
Is it possible to close a ToolWindow programmatically?
I have a ToolWindow that hosts a View (MVVM) and I want the ToolWindow to close when a button is clicked.
The View knows nothing about the ToolWindow (does not reference RadDocking assembly etc) so I can not implement a WindowCommands.Close command on the button to do this.
So what I thought I could do is have my app's Shell Manager assembly (that does reference RadDocking) receive a "CloseView" event which passes in a reference to the View (UIElement). From there I can get a reference to the ToolWindow via ParentOfType<>. So far so good. But now there is no Close() on ToolWindow! I can see one but it's marked Internal ;-(
Any suggestions on this?
Regards,
James