use this routine to help me handle the size, I do it in the StateChanged event of the toolwindow :
private void myWindow_StateChanged(object sender, EventArgs e)
{
if ( ( (ToolWindow)sender).State == Xceed.DockingWindows.ToolWindowState.AutoHide)
{
System.Diagnostics.Debug.WriteLine(“Event Triggered where the State is now now AutoHide”);
// you can change it to what you need.
myWindow.FloatingWindowBounds = new System.Drawing.Rectangle(0,0,50,50);
}
if ( ( (ToolWindow)sender).State == Xceed.DockingWindows.ToolWindowState.Docked)
{
//you can set the value to what you need.
System.Diagnostics.Debug.WriteLine(“Event Triggered where the State is now docked”);
myWindow.Width = 30;
}
if ( ( (ToolWindow)sender).State == Xceed.DockingWindows.ToolWindowState.Floating)
{
System.Diagnostics.Debug.WriteLine(“Event Triggered where the State is now Floating”);
myWindow.FloatingWindowBounds = new System.Drawing.Rectangle(0,0,50,50);
}
{
Imported from legacy forums. Posted by Matt (had 521 views)