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
- e
Type: System.Windows.Input.MouseEventArgs
The event data.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.