Share via


EditModeSwitchButton.OnMouseDown Method

Raises the MouseDown event.

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

Syntax

'Declaration
Protected Overrides Sub OnMouseDown ( _
    e As MouseButtonEventArgs _
)
protected override void OnMouseDown(
    MouseButtonEventArgs e
)
protected:
virtual void OnMouseDown(
    MouseButtonEventArgs^ e
) override
abstract OnMouseDown : 
        e:MouseButtonEventArgs -> unit 
override OnMouseDown : 
        e:MouseButtonEventArgs -> unit 
protected override function OnMouseDown(
    e : MouseButtonEventArgs
)

Parameters

Remarks

Because of the nature of the popup editor capturing the mouse and disappearing when the user clicks outside of it, to pin an ExtendedEditor, the MouseDown event is used instead of the Click event.

.NET Framework Security

See Also

Reference

EditModeSwitchButton Class

Microsoft.Windows.Design.PropertyEditing Namespace

Other Resources

Property Editing Architecture

WPF Designer Extensibility