Share via


RibbonGalleryItem.OnMouseLeave Method

Provides class handling for the MouseLeave routed event.

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

Syntax

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

Parameters

Remarks

This method sets the IsHighlighted and IsPressed properties to false when the mouse pointer leaves this control.

This implementation marks the MouseLeave 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