PropertyEditor Class
Provides information used for displaying and manipulating a property value in a property grid.
public class PropertyEditor : ObservableObjectBase
- Inheritance:
- object ObservableObjectBase object
- Derived:
- PropertyEditorBase BooleanPropertyEditor BrushPropertyEditor ColorPropertyEditor ExtendedStringPropertyEditor FontFamilyPropertyEditor FontStretchPropertyEditor FontStylePropertyEditor FontWeightPropertyEditor LimitedObjectPropertyEditor LimitedStringPropertyEditor NullableBooleanPropertyEditor StringPropertyEditor SuggestedStringPropertyEditor
Constructors
PropertyEditor()
Initializes an instance of the class.
public PropertyEditor()
PropertyEditor(DefaultValueTemplateKind)
Initializes an instance of the class for the specified kind of value template.
protected PropertyEditor(DefaultValueTemplateKind valueTemplateKind)
| Parameter | Type | Description |
|---|---|---|
| valueTemplateKind | DefaultValueTemplateKind |
Properties
NameTemplate
The DataTemplate to use for showing the property display name.
public virtual DataTemplate? NameTemplate { get; set; }
Property Value
Remarks
The priority order of name template specification is NameTemplate, NameTemplateSelector, and finally NameTemplateKey.
NameTemplateKey
The resource key that references a DataTemplate to use for showing the property display name.
public virtual object? NameTemplateKey { get; set; }
Property Value
Remarks
The priority order of name template specification is NameTemplate, NameTemplateSelector, and finally NameTemplateKey.
NameTemplateSelector
The DataTemplateSelector to use for showing the property display name.
public virtual DataTemplateSelector? NameTemplateSelector { get; set; }
Property Value
Remarks
The priority order of name template specification is NameTemplate, NameTemplateSelector, and finally NameTemplateKey.
ObjectType
The type of the data object that contains the property.
PropertyName
The name of the property.
PropertyType
The type of the property.
ValueTemplate
The DataTemplate to use for editing the property value.
public virtual DataTemplate? ValueTemplate { get; set; }
Property Value
Remarks
The priority order of value template specification is ValueTemplate, ValueTemplateSelector, ValueTemplateKey, and finally ValueTemplateKind.
ValueTemplateKey
The resource key that references a DataTemplate to use for editing the property value.
public virtual object? ValueTemplateKey { get; set; }
Property Value
Remarks
The priority order of value template specification is ValueTemplate, ValueTemplateSelector, ValueTemplateKey, and finally ValueTemplateKind.
ValueTemplateKind
The DefaultValueTemplateKind that specifies a default value cell template to use for editing the property value.
public virtual DefaultValueTemplateKind ValueTemplateKind { get; set; }
Property Value
Remarks
The priority order of value template specification is ValueTemplate, ValueTemplateSelector, ValueTemplateKey, and finally ValueTemplateKind.
ValueTemplateSelector
The DataTemplateSelector to use for editing the property value.
public virtual DataTemplateSelector? ValueTemplateSelector { get; set; }
Property Value
Remarks
The priority order of value template specification is ValueTemplate, ValueTemplateSelector, ValueTemplateKey, and finally ValueTemplateKind.
Methods
GetIsReadOnly(IPropertyModel)
Returns whether the specified IPropertyModel should be optionally forced read-only or not, directly affecting the IsReadOnly result.
protected virtual bool? GetIsReadOnly(IPropertyModel propertyModel)
| Parameter | Type | Description |
|---|---|---|
| propertyModel | IPropertyModel | The IPropertyModel to examine. |
Returns
- bool?:
trueif the property model should be read-only.falseif the property model should not be read-only.nullto allow default logic for determining read-only state to execute.
Remarks
Do not call IsReadOnly from within this method, since the getter for that property calls into this method as part of its default logic.
Inherited Members
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()