Exemple #1
0
        public override void Initialize(object owner, object value)
        {
            this.OwnerElement = (RadElement)(owner as PropertyGridItemElement);
            PropertyGridUITypeEditorElement editorElement = this.EditorElement as PropertyGridUITypeEditorElement;
            PropertyGridItem data = ((PropertyGridItemElementBase)this.OwnerElement).Data as PropertyGridItem;

            editorElement.EditedType = data.PropertyType;
            editorElement.Editor     = (UITypeEditor)data.PropertyDescriptor.GetEditor(typeof(UITypeEditor));
            editorElement.Converter  = data.TypeConverter;
            editorElement.Text       = value != null?value.ToString() : string.Empty;

            this.Value         = value;
            this.originalValue = value;
        }
Exemple #2
0
 public PropertyGridUITypeEditor(PropertyGridUITypeEditorElement editor)
 {
     this.editor = editor;
 }
Exemple #3
0
 public PropertyGridUITypeEditor()
 {
     this.editor = this.CreateEditorElement() as PropertyGridUITypeEditorElement;
 }