PropertyValueEditor Class
Container for any and all inline editor logic for properties.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.PropertyEditing.PropertyValueEditor
Microsoft.Windows.Design.PropertyEditing.DialogPropertyValueEditor
Microsoft.Windows.Design.PropertyEditing.ExtendedPropertyValueEditor
Namespace: Microsoft.Windows.Design.PropertyEditing
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Class PropertyValueEditor
public class PropertyValueEditor
public ref class PropertyValueEditor
type PropertyValueEditor = class end
public class PropertyValueEditor
The PropertyValueEditor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PropertyValueEditor() | Initializes a new instance of the PropertyValueEditor class. | |
PropertyValueEditor(DataTemplate) | Initializes a new instance of the PropertyValueEditor class. |
Top
Properties
Name | Description | |
---|---|---|
InlineEditorTemplate | Gets or sets the DataTemplate that is used for an inline editor. |
Top
Methods
Name | Description | |
---|---|---|
CreateEditorAttribute(Type) | Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type. | |
CreateEditorAttribute(PropertyValueEditor) | Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
Examples
The following code example shows how to use the PropertyValueEditor class. For more information, see Walkthrough: Implementing an Inline Value Editor.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.PropertyEditing Namespace