ExtendedStringPropertyEditor Class
Represents a PropertyEditor for editing a String
value (or Object
value via ValueAsString
) with a TextBox
and ...
(ellipses) button.
public class ExtendedStringPropertyEditor : PropertyEditor, INotifyPropertyChanged
- Inheritance:
- Object ObservableObjectBase PropertyEditor Object
Constructors
ExtendedStringPropertyEditor()
Initializes an instance of the ExtendedStringPropertyEditor class.
public ExtendedStringPropertyEditor()
Properties
Behavior
Gets or sets the read-only/enabled state behavior of controls within a template for this property editor.
public ExtendedStringPropertyEditorBehavior Behavior { get; set; }
Property Value
- ExtendedStringPropertyEditorBehavior:
The read-only/enabled state behavior of controls within a template for this property editor. The default value is
Default
.
ButtonCommand
Gets or sets the ICommand to use on the button in the template.
public ICommand ButtonCommand { get; set; }
Property Value
Methods
GetIsReadOnly(IPropertyModel)
Returns whether the specified IPropertyModel should be optionally forced read-only or not, directly affecting the IsReadOnly result.
protected override bool? GetIsReadOnly(IPropertyModel propertyModel)
Parameter | Type | Description |
---|---|---|
propertyModel | IPropertyModel | The IPropertyModel to examine. |
Returns
- Nullable<Boolean>:
true
if the property model should be read-only.false
if the property model should not be read-only. null to 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
- PropertyEditor.NameTemplate
- PropertyEditor.NameTemplateKey
- PropertyEditor.NameTemplateSelector
- PropertyEditor.ObjectType
- PropertyEditor.PropertyName
- PropertyEditor.PropertyType
- PropertyEditor.ValueTemplate
- PropertyEditor.ValueTemplateKey
- PropertyEditor.ValueTemplateKind
- PropertyEditor.ValueTemplateSelector
- ObservableObjectBase.NotifyPropertyChanged(String)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.PropertyChanged
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()