Added constructors for UiElement.