Question

Restore a destroyed toolwindow

Posted 5 years ago by Avatar Marc Wuergler - ELCA Informatique SA
I have a docksite with a tool window declared in xaml.

Later on, I destroy it programmatically. What happens to it? I still have access to it in my code (it is not null), but I cannot reactivate it.

Do I have to create a new instance, or can I register it again with the docksite? And how can I check if the tool window is destroyed or not?

Thanks for your help.

Marc Wuergler

Comments (1)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Marc,

I think it just closes it and removes it from the DockSite's registry. But as soon as you dock it back within the DockSite hierarchy, I believe it will attach itself again.

To know if it's attached you can see if it is in the DockSite.ToolWindows collection or not.

Actipro Software Support
Information The latest build of this product (2014.1 build 0601) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.