markus / KCOM / Extensions / MouseHelper.cs @ 20ef6ffe
이력 | 보기 | 이력해설 | 다운로드 (1004 Bytes)
1 |
using KCOM.Common; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
using System.Windows; |
8 |
|
9 |
namespace KCOM |
10 |
{ |
11 |
public static class MouseHelper |
12 |
{ |
13 |
/// <summary> |
14 |
/// Page에서 마우스가 위치하는 좌표 |
15 |
/// </summary> |
16 |
public static Point PageLocation |
17 |
{ |
18 |
get { |
19 |
if (ViewerDataModel.Instance.SystemMain.dzMainMenu.mainPanel != null) |
20 |
{ |
21 |
return new Point |
22 |
{ |
23 |
X = ViewerDataModel.Instance.SystemMain.dzMainMenu.mainPanel.ActualWidth, |
24 |
Y = ViewerDataModel.Instance.SystemMain.dzMainMenu.mainPanel.ActualHeight |
25 |
}; |
26 |
} |
27 |
else |
28 |
{ |
29 |
return new Point(); |
30 |
} |
31 |
} |
32 |
|
33 |
private set {; } |
34 |
} |
35 |
|
36 |
|
37 |
|
38 |
} |
39 |
} |