WidgetFactoryProperty().SetValue(customWidgetType, UIResourceManager.WidgetFactory);
NameProperty().SetValue(customWidgetType, name);