public override void LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages) { // Let base class load the pages into the floatspace base.LoadElementFromXml(xmlReader, pages); // If loading did not create any pages then kill ourself as not needed if (FloatspaceControl.PageCount == 0) FloatspaceControl.Dispose(); }