Dela via


PropertyContainer.DialogCommandSource Property

Gets or sets the IInputElement to pass to the DialogPropertyValueEditor.ShowDialog method as the command source. This is a dependency property.

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

Syntax

'Declaration
Public Property DialogCommandSource As IInputElement
'Usage
Dim instance As PropertyContainer 
Dim value As IInputElement 

value = instance.DialogCommandSource

instance.DialogCommandSource = value
public IInputElement DialogCommandSource { get; set; }
public:
property IInputElement^ DialogCommandSource {
    IInputElement^ get ();
    void set (IInputElement^ value);
}
public function get DialogCommandSource () : IInputElement 
public 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

PropertyContainer Members

Microsoft.Windows.Design.PropertyEditing Namespace

Other Resources

WPF Designer Extensibility

Property Editing Architecture

Dependency Properties Overview