/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal OverlayElementManager() { if (instance == null) { instance = this; // register the default overlay element factories instance.AddElementFactory(new Elements.BorderPanelFactory()); instance.AddElementFactory(new Elements.TextAreaFactory()); instance.AddElementFactory(new Elements.PanelFactory()); } }