/// <summary> /// Возвращает описание контрола SampleTextBox /// </summary> private ControlTypeDescription GetSampleTextBoxDescription() { var standardCssClass = PropertyFactory.GetStandardCssClassProperty(); standardCssClass.DefaultValue = "sample-textbox"; var sampleTextBox = new ControlTypeDescription(Constants.SampleTextBox.ClassName) { DisplayName = Resources.ControlTypes_SampleTextBox, ControlGroupDisplayName = Resources.ControlGroup_Samples, PropertyDescriptions = { standardCssClass, PropertyFactory.GetNameProperty(), PropertyFactory.GetVisibilityProperty(), PropertyFactory.GetCustomCssClassesProperty(), PropertyFactory.GetTipProperty(), PropertyFactory.GetLabelTextProperty(), PropertyFactory.GetTabStopProperty(), PropertyFactory.GetDefaultProperty(), PropertyFactory.Create(Constants.CommonProperties.UrlAddress), PropertyFactory.GetClickEvent(), PropertyFactory.GetMouseOverEvent(), PropertyFactory.GetMouseOutEvent(), PropertyFactory.GetFocusEvent(), PropertyFactory.GetBlurEvent(), PropertyFactory.GetDataChangedEvent(), PropertyFactory.CreateEvent("ImageClick", "ControlTypes_ImageClickEventProperty"), }, GetAllowedOperations = AllowedOperationsStorage.GetAllowedOperations(Constants.AllowedOperations.AllowCreateInEditLayoutsOnly) }; PropertyFactory.AddSimpleBinding(sampleTextBox, editOperation: true); return(sampleTextBox); }