Bagikan melalui


PropertyValueEditorCommands Class

Provides standard commands that control the behavior of a property window when the user edits properties.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValueEditorCommands

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

Syntax

'Declaration
Public NotInheritable Class PropertyValueEditorCommands
public static class PropertyValueEditorCommands
public ref class PropertyValueEditorCommands abstract sealed
[<AbstractClass>]
[<Sealed>]
type PropertyValueEditorCommands =  class end
public final class PropertyValueEditorCommands

The PropertyValueEditorCommands type exposes the following members.

Properties

  Name Description
Public propertyStatic member AbortTransaction Gets a RoutedCommand that represents a request to cancel a transaction associated with a property edit.
Public propertyStatic member BeginTransaction Gets a RoutedCommand that represents a request to begin a new transaction associated with a property edit.
Public propertyStatic member CommitTransaction Gets a RoutedCommand that represents a request to commit a transaction associated with a property edit.
Public propertyStatic member FinishEditing Gets a RoutedCommand that represents a notification to the host that a property edit has been completed.
Public propertyStatic member ShowContextMenu Gets a RoutedCommand that represents a request to display a context menu in the PropertyContainer.
Public propertyStatic member ShowDialogEditor Gets a RoutedCommand that represents a request to display a dialog box editor for a property.
Public propertyStatic member ShowErrorMessage Gets a RoutedCommand that represents a request to show a validation error message.
Public propertyStatic member ShowExtendedPinnedEditor Gets a RoutedCommand that represents a request to display a pinned editor for a property.
Public propertyStatic member ShowExtendedPopupEditor Gets a RoutedCommand that represents a request to display an extended editor for a property.
Public propertyStatic member ShowInlineEditor Gets a RoutedCommand that represents a request to display an inline editor for a property.

Top

Remarks

When a user edits properties in a property window, there are some standard behaviors the window should exhibit.

The action of editing the property should be wrapped in a transaction. The user can commit the edit, for example, by pressing the ENTER key. The user can cancel the edit, for example, by pressing the ESC key.

The property window should support the user with different editing modes for a property, if available. The user can use the following types of property editors:

  • Inline editors. For example, the Margin property editor where the user types the property value directly in the property's row.

  • Extended editors. For example, the HorizontalAlignment property editor where the user selects the property value from a drop down list.

  • Dialog box editors. For example, the RowDefinitions property editor where the user enters the property value in a separate dialog box.

  • Pinned editors, which are dialog boxes that are pinned in place below the property in the property window.

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

PropertyValueEditor

PropertyContainerEditMode

Inline

ExtendedPopup

Dialog

ExtendedPinned

Other Resources

WPF Designer Extensibility Architecture