I am able to register the view as the toolwindow in main application by adding the viewmodel into the region as in case of the prism integration with docking.
How to Get the docksite for the object of the viewmodel.
during the runtime if i get the breakpoint in the viewmodel then i can check the viewmodel exists in which docksite by using the quickWatch (debug time).
But programatically not geting..
My view is exist in the docksite1 and if i close the button in the docksite3 ,it closes that view of the docksite1 but if i move the view from the docksite1 to any another docksite2 and then click the close button of the docksite3 then now how to get the view or the viewmodel exists in the docksite2 indstead of docksite1.