-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml.cs
37 lines (33 loc) · 1.11 KB
/
MainWindow.xaml.cs
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
34
35
36
37
using DevExpress.DashboardCommon;
using DevExpress.DashboardWpf;
using System.Windows;
namespace Dashboard_UnderlyingDataWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void DashboardControl_DashboardItemMouseMove(object sender, DashboardItemMouseActionWpfEventArgs e)
{
if (e.DashboardItemName != null)
{
DashboardUnderlyingDataSet underlyingData = e.GetUnderlyingData();
myGrid.ItemsSource = underlyingData;
tooltip.Placement = System.Windows.Controls.Primitives.PlacementMode.MousePoint;
}
}
private void DashboardControl_DashboardItemMouseEnter(object sender, DashboardItemMouseWpfEventArgs e)
{
tooltip.IsOpen = true;
}
private void DashboardControl_DashboardItemMouseLeave(object sender, DashboardItemMouseWpfEventArgs e)
{
tooltip.IsOpen = false;
}
}
}