次の方法で共有


DialogPropertyValueEditor.ShowDialog メソッド

DialogEditorTemplate が nullnull 参照 (Visual Basic では Nothing) で、ダイアログ ボックスがユーザーによって起動されているときに呼び出されます。

名前空間:  Microsoft.Windows.Design.PropertyEditing
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public Overridable Sub ShowDialog ( _
    propertyValue As PropertyValue, _
    commandSource As IInputElement _
)
public virtual void ShowDialog(
    PropertyValue propertyValue,
    IInputElement commandSource
)
public:
virtual void ShowDialog(
    PropertyValue^ propertyValue, 
    IInputElement^ commandSource
)
abstract ShowDialog : 
        propertyValue:PropertyValue * 
        commandSource:IInputElement -> unit 
override ShowDialog : 
        propertyValue:PropertyValue * 
        commandSource:IInputElement -> unit 
public function ShowDialog(
    propertyValue : PropertyValue, 
    commandSource : IInputElement
)

パラメーター

解説

このメソッドをオーバーライドすると、既存のシステム ダイアログ ボックスの起動など、カスタム ダイアログ ボックス ロジックを実装できます。

PropertyValueEditorCommands はホストによって処理され、カスタム ダイアログ ボックスはそのビジュアル ツリーに含まれていないため、commandSource は、ホストのビジュアル ツリーの一部である IInputElement を公開します。 これを使用して、プロパティ編集コマンドを実行し、それらが正確に処理されるようにすることができます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

DialogPropertyValueEditor クラス

Microsoft.Windows.Design.PropertyEditing 名前空間

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

その他の技術情報

プロパティ編集アーキテクチャ

WPF デザイナーの機能拡張