-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml.vb
33 lines (27 loc) · 1.18 KB
/
MainWindow.xaml.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Imports DevExpress.DashboardCommon
Imports DevExpress.DashboardWpf
Imports System.Windows
Namespace Dashboard_UnderlyingDataWPF
''' <summary>
''' Interaction logic for MainWindow.xaml
''' </summary>
Public Partial Class MainWindow
Inherits Window
Public Sub New()
Me.InitializeComponent()
End Sub
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()
Me.myGrid.ItemsSource = underlyingData
tooltip.Placement = System.Windows.Controls.Primitives.PlacementMode.MousePoint
End If
End Sub
Private Sub DashboardControl_DashboardItemMouseEnter(ByVal sender As Object, ByVal e As DashboardItemMouseWpfEventArgs)
tooltip.IsOpen = True
End Sub
Private Sub DashboardControl_DashboardItemMouseLeave(ByVal sender As Object, ByVal e As DashboardItemMouseWpfEventArgs)
tooltip.IsOpen = False
End Sub
End Class
End Namespace