public override void PerformRestore(DockingManager dm) { // Create collection of Contents to auto hide ContentCollection cc = new ContentCollection(); // In this case, there is only one cc.Add(_content); // Add to appropriate AutoHidePanel based on _state dm.AutoHideContents(cc, _state); }