RibbonCheckBox.OnMouseLeftButtonDown Method

Provides class handling for the MouseLeftButtonDown routed event to prevent the control from receiving keyboard focus.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

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

Parameters

Remarks

The Ribbon should not take keyboard focus from the application. This method overrides the default behavior and temporarily sets the Focusable property to false, which prevents the control from taking keyboard focus. It then calls the base method.

This implementation does not change the handled state (the Handled property) of the MouseLeftButtonDown event data.

.NET Framework Security

See Also

Reference

RibbonCheckBox Class

Microsoft.Windows.Controls.Ribbon Namespace