Share via


RibbonGalleryItem.OnMouseLeftButtonDown Method

Provides class handling for the MouseLeftButtonDown routed event.

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

This method sets the IsHighlighted property to true. If the mouse button is pressed, it also sets the IsPressed property to true.

This implementation marks the MouseLeftButtonDown event as handled by setting the Handled property of the event data to true.

.NET Framework Security

See Also

Reference

RibbonGalleryItem Class

Microsoft.Windows.Controls.Ribbon Namespace