Share via


PropertyContainer.DialogCommandSource Property

Gets or sets the IInputElement to pass to the DialogPropertyValueEditor.ShowDialog method as the command source.

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

Syntax

'Declaration
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)

Property Value

Type: System.Windows.IInputElement
An IInputElement to pass to the DialogPropertyValueEditor.ShowDialog method as the command source.

Dependency Property Information

Identifier field

DialogCommandSourceProperty

Metadata properties set to true

None

Remarks

If this property is not explicitly set, the current control will be passed as the command source.

Note

The DialogPropertyValueEditor.ShowDialog method is called on a DialogPropertyValueEditor instance if a dialog editor is invoked and the editor does not specify a dialog DataTemplate.

.NET Framework Security

See Also

Reference

PropertyContainer Class

Microsoft.Windows.Design.PropertyEditing Namespace

Other Resources

WPF Designer Extensibility

Property Editing Architecture

Dependency Properties Overview