Back to Devexpress

DashboardControl.DashboardItemMouseMove Event

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-8ca39b1b.md

latest9.3 KB
Original Source

DashboardControl.DashboardItemMouseMove Event

Occurs when the mouse pointer moves over a dashboard item.

Namespace : DevExpress.DashboardWpf

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

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public event DashboardItemMouseActionWpfEventHandler DashboardItemMouseMove
vb
Public Event DashboardItemMouseMove As DashboardItemMouseActionWpfEventHandler

Event Data

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

PropertyDescription
DashboardItemNameGets the name of the dashboard item. Inherited from DashboardItemMouseWpfEventArgs.
DataGets the data displayed in the dashboard item.

The event data class exposes the following methods:

MethodDescription
GetAxisPoint()Obtains the AxisPoint object located at the top priority axis and related to the visual element under the test point.
GetAxisPoint(String)Obtains the AxisPoint object located at the specified axis and related to the visual element under the test point.
GetDeltas()Gets a list of delta descriptors related to the visual element located under the test point.
GetMeasures()Gets a list of measure descriptors related to the visual element located under the test point.
GetSlice()Returns the data slice for the Default axis by the AxisPoint related to the visual element located under the test point.
GetSlice(String)Returns the data slice for the specified axis by the AxisPoint related to the visual element located under the test point.
GetUnderlyingData()Returns underlying data related to the visual element located under the test point.
GetUnderlyingData(IList<String>)Returns underlying data related to the visual element located under the test point.
GetUnderlyingData(String, IList<String>)Returns underlying data related to the visual element located under the test point.
GetUnderlyingData(String)Returns underlying data related to the visual element located under the test point.

Remarks

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

To obtain the data related to the dashboard item element, use the following methods:

The event retrieves data from different dashboard item’s visual elements:

The event has the following limitations:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DashboardItemMouseMove 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#L21

xml
DashboardItemMouseLeave="DashboardControl_DashboardItemMouseLeave"
DashboardItemMouseMove="DashboardControl_DashboardItemMouseMove"
DashboardSource="{x:Type local:SalesDashboard}" />

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

csharp
#line 21 "..\..\..\MainWindow.xaml"
((DevExpress.DashboardWpf.DashboardControl)(target)).DashboardItemMouseMove += new DevExpress.DashboardWpf.DashboardItemMouseActionWpfEventHandler(this.DashboardControl_DashboardItemMouseMove);

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

vb
#ExternalSource("..\..\MainWindow.xaml",21)
AddHandler CType(target,DevExpress.DashboardWpf.DashboardControl).DashboardItemMouseMove, New DevExpress.DashboardWpf.DashboardItemMouseActionWpfEventHandler(AddressOf Me.DashboardControl_DashboardItemMouseMove)

See Also

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace