I have some code which creates a new tool window, sets it's size and docks it. Unfortunately the TabStrip property is always null. Why is this? All the sample code I've found in the documentation seems to do exactly what I am trying to do.
var tw = new ToolWindow { Name = title };
var strip = (DockTabStrip)tw.TabStrip;
strip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
strip.SizeInfo.AbsoluteSize = new Size((int)width,
mainDock.DockWindow(tw, DockPosition.Left);
var tw = new ToolWindow { Name = title };
var strip = (DockTabStrip)tw.TabStrip;
strip.SizeInfo.SizeMode = SplitPanelSizeMode.Absolute;
strip.SizeInfo.AbsoluteSize = new Size((int)width,
mainDock.DockWindow(tw, DockPosition.Left);