In This Article

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
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

ICommand:

The ICommand to use on the button in the template.

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

bool?:

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