How to get the view or the usercontrol from the toolwindow.

Docking/MDI for WPF Forum

Posted 12 years ago by keshav bansal
Version: 12.1.0561


I am able to register the usercontrol(view) as the toolwindow using the prism integration with docking .

As i run the application usercontrol will be display as the toolwindow in my main application and i am handling the windowdrgaging event for that docksiteof the usercontrol  but not able to get the usercontrol from that toolwindow.


void dockSite_WindowDragging(object sender, RoutedEventArgse)


DockSite dockSite = (sender asDockSite);

List<ToolWindow> twlist = dockSite.ToolWindows.ToList();

foreach (ToolWindow tw intwlist)


if (tw.Name == "abc")


----------How to get the view of usercontrol from this toolwindow. like tw.GetView();

DockSite.SetControlSizeForState(tw.ParentContainer, newSize(230, 165), DockingWindowState.Docked);




Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Keshav,

The ToolWindow.Content property will allow you to access the UserControl in the window.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.