PropertyValueEditorCommands 類別

提供標準命令,這些標準命令可控制在使用者編輯屬性時的屬性視窗行為。

繼承階層架構

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

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

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

PropertyValueEditorCommands 型別會公開下列成員。

屬性

  名稱 說明
公用屬性靜態成員 AbortTransaction 取得 RoutedCommand,表示用以取消與屬性編輯相關聯之交易的要求。
公用屬性靜態成員 BeginTransaction 取得 RoutedCommand,表示用以開始與屬性編輯相關聯之新交易的要求。
公用屬性靜態成員 CommitTransaction 取得 RoutedCommand,表示用以認可與屬性編輯相關聯之交易的要求。
公用屬性靜態成員 FinishEditing 取得 RoutedCommand,表示要送給已完成屬性編輯之主應用程式的告知。
公用屬性靜態成員 ShowContextMenu 取得 RoutedCommand,表示在 PropertyContainer 中顯示內容功能表的要求。
公用屬性靜態成員 ShowDialogEditor 取得 RoutedCommand,表示用以顯示屬性之對話方塊編輯器的要求。
公用屬性靜態成員 ShowErrorMessage 取得 RoutedCommand,表示顯示驗證錯誤訊息的要求。
公用屬性靜態成員 ShowExtendedPinnedEditor 取得 RoutedCommand,表示用以顯示屬性之固定編輯器的要求。
公用屬性靜態成員 ShowExtendedPopupEditor 取得 RoutedCommand,表示用以顯示屬性之擴充編輯器的要求。
公用屬性靜態成員 ShowInlineEditor 取得 RoutedCommand,表示用以顯示屬性之內嵌編輯器的要求。

回頁首

備註

當使用者在屬性視窗中編輯屬性時,該視窗應該展示一些標準行為。

編輯屬性的動作應該包裝在交易中。 例如,使用者可以按 ENTER 鍵認可編輯。 例如,使用者可以按 ESC 鍵取消編輯。

屬性視窗應該支援一個屬性具備不同編輯模式 (如果有的話) 的使用者。 使用者可以使用下列屬性編輯器類型:

  • 內嵌編輯器。 例如,在 Margin 屬性編輯器中,使用者可以直接在屬性的資料列中輸入屬性值。

  • 擴充編輯器。 例如,在 HorizontalAlignment 屬性編輯器中,使用者可以從下拉式清單中選取屬性值。

  • 對話方塊編輯器。 例如,在 RowDefinitions 屬性編輯器中,使用者可以在個別的對話方塊中輸入屬性值。

  • 固定的編輯器,也就是在屬性視窗中固定於屬性之下的對話方塊。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Windows.Design.PropertyEditing 命名空間

PropertyValueEditor

PropertyContainerEditMode

Inline

ExtendedPopup

Dialog

ExtendedPinned

其他資源

WPF 設計工具擴充性架構