PropertyContainer.DialogCommandSource 属性

获取或设置要作为命令源传递给 DialogPropertyValueEditor.ShowDialog 方法的 IInputElement

命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Property DialogCommandSource As IInputElement
    Get
    Set
public IInputElement DialogCommandSource { get; set; }
public:
property IInputElement^ DialogCommandSource {
    IInputElement^ get ();
    void set (IInputElement^ value);
}
member DialogCommandSource : IInputElement with get, set
function get DialogCommandSource () : IInputElement
function set DialogCommandSource (value : IInputElement)

属性值

类型:System.Windows.IInputElement
要作为命令源传递给 DialogPropertyValueEditor.ShowDialog 方法的 IInputElement

依赖项属性信息

标识符字段

DialogCommandSourceProperty

设置为 true 的元数据属性

备注

如果没有显式设置此属性,则当前控件将作为命令源传递。

提示

如果调用对话框编辑器,而该编辑器没有指定对话框 DataTemplate,则将对 DialogPropertyValueEditor 实例调用 DialogPropertyValueEditor.ShowDialog 方法。

.NET Framework 安全性

请参见

参考

PropertyContainer 类

Microsoft.Windows.Design.PropertyEditing 命名空间

其他资源

WPF 设计器扩展性

属性编辑体系结构

依赖项属性概述