Back to Devexpress

DashboardControl.DashboardItemMouseLeave Event

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-3cbed971.md

latest4.6 KB
Original Source

DashboardControl.DashboardItemMouseLeave Event

Occurs when the mouse pointer enters the dashboard item.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public event DashboardItemMouseWpfEventHandler DashboardItemMouseLeave
vb
Public Event DashboardItemMouseLeave As DashboardItemMouseWpfEventHandler

Event Data

The DashboardItemMouseLeave event's data class is DashboardItemMouseWpfEventArgs. The following properties provide information specific to this event:

PropertyDescription
DashboardItemNameGets the name of the dashboard item.

Remarks

Use the e.DashboardItemName property to obtain the dashboard item name for which the event is raised.

This event does not occur when the mouse pointer hovers over the scroll area and space between elements in the following dashboard items: cards in the CardDashboardItem, pies in the PieDashboardItem and gauges in the GaugeDashboardItem. This event does not occur when the mouse pointer hovers over the image paddings in the ImageDashboardItem.

View Example: How to obtain the dashboard item's underlying data when the mouse hovers over it

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DashboardItemMouseLeave event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-dashboard-how-to-obtain-item-data-on-mouse-hover/CS/Dashboard_UnderlyingDataWPF/MainWindow.xaml#L20

xml
DashboardItemMouseEnter="DashboardControl_DashboardItemMouseEnter"
DashboardItemMouseLeave="DashboardControl_DashboardItemMouseLeave"
DashboardItemMouseMove="DashboardControl_DashboardItemMouseMove"

wpf-dashboard-how-to-obtain-item-data-on-mouse-hover/CS/Dashboard_UnderlyingDataWPF/obj/Debug/net8.0-windows/MainWindow.g.cs#L117

csharp
#line 20 "..\..\..\MainWindow.xaml"
((DevExpress.DashboardWpf.DashboardControl)(target)).DashboardItemMouseLeave += new DevExpress.DashboardWpf.DashboardItemMouseWpfEventHandler(this.DashboardControl_DashboardItemMouseLeave);

wpf-dashboard-how-to-obtain-item-data-on-mouse-hover/VB/Dashboard_UnderlyingDataWPF/obj.NetFX/Debug/MainWindow.g.vb#L114

vb
#ExternalSource("..\..\MainWindow.xaml",20)
AddHandler CType(target,DevExpress.DashboardWpf.DashboardControl).DashboardItemMouseLeave, New DevExpress.DashboardWpf.DashboardItemMouseWpfEventHandler(AddressOf Me.DashboardControl_DashboardItemMouseLeave)

See Also

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace