I have a scenario where I have a toolwindow docked on the left hand side of the document. I have a splitcontainer loaded just to the right of this. At runtime I am dynamically creating a new toolwindow and wish to position the new window at the top of the split containter, not the top of the document. I am using the following code to load the new toolwindow:
ToolWindow windowPT = new ToolWindow();
windowPT.Text = "PhoneTrak Dashboard";
windowPT.Name = "twPhoneTrak";
windowPT.DockState = DockState.Docked;
rdMain.DockWindow(windowPT, DockPosition.Top);
Please see attached images for current placement vs. desired placement.
Thanks in advance!
ToolWindow windowPT = new ToolWindow();
windowPT.Text = "PhoneTrak Dashboard";
windowPT.Name = "twPhoneTrak";
windowPT.DockState = DockState.Docked;
rdMain.DockWindow(windowPT, DockPosition.Top);
Please see attached images for current placement vs. desired placement.
Thanks in advance!