Bagikan melalui


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
Public method PropertyValueEditor() Initializes a new instance of the PropertyValueEditor class.
Public method PropertyValueEditor(DataTemplate) Initializes a new instance of the PropertyValueEditor class.

Top

Properties

  Name Description
Public property InlineEditorTemplate Gets or sets the DataTemplate that is used for an inline editor.

Top

Methods

  Name Description
Public methodStatic member CreateEditorAttribute(Type) Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type.
Public methodStatic member CreateEditorAttribute(PropertyValueEditor) Utility method that creates a new EditorAttribute for the specified PropertyValueEditor type.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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

Other Resources

Property Editing Architecture

WPF Designer Extensibility