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