blob: 6b6db0a39335b3059cb119451c8861cdf512ef66 (
plain)
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Tango.Core.EventArguments
{
public class MouseOrTouchEventArgs : EventArgs
{
public Point Location { get; set; }
public Object Source { get; set; }
public Object OriginalSource { get; set; }
internal Func<IInputElement, Point> GetPositionAction { get; set; }
public bool Handled { get; set; }
public TouchDevice TouchDevice { get; set; }
public StylusDevice StylusDevice { get; set; }
public Point GetPosition(IInputElement relativeTo)
{
return GetPositionAction(relativeTo);
}
}
}
|