Hi,
From the function Docksite.SetControlSize(toolWindow, new Size(150, 150)) used in the Initialize function of the IDockingWindowInitializer,I am not able to set the height of the usercontrol which is registered as the toolwindow in the main shell with the help of the PrismIntegration with docking.I can set only width of the usercontrol from the above function in the main shell.
Code used.
public void Initialize(DockingWindow dockingWindow, objectitem)
{
if (dockingWindow == null)
thrownewArgumentNullException("dockingWindow");
dockingWindow.Name ="AblationToolWindow";
dockingWindow.Title ="Abaltion View";
ToolWindow toolwindow = dockingWindow asToolWindow;
DockSite.SetControlSize(toolwindow, newSize(50,10));
dockingWindow.ImageSource =newBitmapImage(newUri("/Resources/Images/SolutionExplorer16.png", UriKind.Relative));
}
public void Open(DockingWindow dockingWindow, objectitem)
{
if (dockingWindow == null)
thrownewArgumentNullException("dockingWindow");
ToolWindow toolWindow = dockingWindow asToolWindow;
if (dockSite != null && toolWindow != null){
ToolWindow relativeToolWindow = dockSite.ToolWindows["VitalToolWindow"];
if (relativeToolWindow != null)
{
toolWindow.Dock(relativeToolWindow,Direction.Content);
}
else
{
toolWindow.Dock(dockSite,
Direction.Right);
toolWindow.CanAutoHide =false;
toolWindow.CanRaft = false;
toolWindow.HasOptions =false;
toolWindow.CanClose =
false;
}
}