Back to Devexpress

DashboardItemMouseWpfEventArgs.DashboardItemName Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboarditemmousewpfeventargs.md

latest3.7 KB
Original Source

DashboardItemMouseWpfEventArgs.DashboardItemName Property

Gets the name of the dashboard item.

Namespace : DevExpress.DashboardWpf

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

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public string DashboardItemName { get; }
vb
Public ReadOnly Property DashboardItemName As String

Property Value

TypeDescription
String

A String that is the name of the dashboard item.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardItemName property.

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-clicked-item-data/CS/Dashboard_ClientDataCards_Wpf/MainWindow.xaml.cs#L23

csharp
{
    if (e.DashboardItemName == "cardDashboardItem1" & e.GetAxisPoint() != null)
    {

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

csharp
{
    if (e.DashboardItemName != null)
    {

wpf-dashboard-how-to-obtain-clicked-item-data/VB/Dashboard_ClientDataCards_Wpf/MainWindow.xaml.vb#L22

vb
Private Sub DashboardControl_DashboardItemMouseUp(ByVal sender As Object, ByVal e As DevExpress.DashboardWpf.DashboardItemMouseActionWpfEventArgs)
    If Equals(e.DashboardItemName, "cardDashboardItem1") And e.GetAxisPoint() IsNot Nothing Then
        ' Obtains client data related to the clicked card.

wpf-dashboard-how-to-obtain-item-data-on-mouse-hover/VB/Dashboard_UnderlyingDataWPF/MainWindow.xaml.vb#L18

vb
Private Sub DashboardControl_DashboardItemMouseMove(ByVal sender As Object, ByVal e As DashboardItemMouseActionWpfEventArgs)
    If Not Equals(e.DashboardItemName, Nothing) Then
        Dim underlyingData As DashboardUnderlyingDataSet = e.GetUnderlyingData()

See Also

DashboardItemMouseWpfEventArgs Class

DashboardItemMouseWpfEventArgs Members

DevExpress.DashboardWpf Namespace