Reopening Docks with MVVM

I would like to add a "windows" button on my menu bar that allows you to open a dock once it's closed. The issue is I am using MVVM with a DockingAdapter and my Menu exists in my DockingManager project. How can I open previously closed docks?

Thanks

1 Reply

DR Durga Rajan Syncfusion Team March 2, 2018 05:32 PM UTC

Hi Caleb, 

Thanks for contacting Syncfusion support. 

We have checked your query and prepared a sample which tries to meet your requirement. State of the docking child will be changed to Hidden while closing the window. So, we can restore the element to its old state using RestoreElement() of DockingManager. In this sample we have stored the Closed window in RecentMenuItemCollection of ViewModel and provided a menu options to open the recently closed window and we have displayed the recently closed windows under "Windows" menuitem. Please download the sample for the same, please download the sample from below location.    


Regards, 
Durga S. 
   


Loader.
Up arrow icon