This documentation is archived and is not being maintained.

PropertyValueEditor Class

Container for any and all inline editor logic for properties.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

public class PropertyValueEditor

The PropertyValueEditor type exposes the following members.

Public methodPropertyValueEditor()Initializes a new instance of the PropertyValueEditor class.
Public methodPropertyValueEditor(DataTemplate)Initializes a new instance of the PropertyValueEditor class.

Public propertyInlineEditorTemplateGets or sets the DataTemplate that is used for an inline editor.

Public methodStatic memberCreateEditorAttribute(Type)Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type.
Public methodStatic memberCreateEditorAttribute(PropertyValueEditor)Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

This class can hold a single DataTemplate for an inline editor. This is typically used to provide a different or custom editor for a property in the Properties window. The inline editor appears within the Properties window. To provide a custom editor that has a larger screen area and is not always visible, see ExtendedPropertyValueEditor.

The InlineEditorTemplate property returns the XAML template for the visual interface for this editor. This is typically provided in a ResourceDictionary elsewhere in the project.

The following code example shows how to use the PropertyValueEditor class. For more information, see Walkthrough: Implementing an Inline Value Editor.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.