DialogPropertyValueEditor.ShowDialog(PropertyValue, IInputElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当为 DialogEditorTemplate null 且用户已调用对话时调用。
public:
virtual void ShowDialog(System::Activities::Presentation::PropertyEditing::PropertyValue ^ propertyValue, System::Windows::IInputElement ^ commandSource);
public virtual void ShowDialog(System.Activities.Presentation.PropertyEditing.PropertyValue propertyValue, System.Windows.IInputElement commandSource);
abstract member ShowDialog : System.Activities.Presentation.PropertyEditing.PropertyValue * System.Windows.IInputElement -> unit
override this.ShowDialog : System.Activities.Presentation.PropertyEditing.PropertyValue * System.Windows.IInputElement -> unit
Public Overridable Sub ShowDialog (propertyValue As PropertyValue, commandSource As IInputElement)
参数
- propertyValue
- PropertyValue
PropertyValue正在编辑的属性。
- commandSource
- IInputElement
注解
由于命令由主机处理,并且自定义对话不会成为该可视化树的一部分,因此 commandSource ,公开属于主机可视化树的一 IInputElement 部分,因此,可用于以正确处理它们的方式执行属性编辑命令。 重写此方法可以实现任何自定义对话逻辑,例如调用现有系统对话。