如何根据给出的触摸事件确定元素名称,其他属性,
Touch.FrameReported += new TouchFrameEventHandler(OnFrameReported);
private void OnFrameReported(object sender, TouchFrameEventArgs e)
{
TouchPoint primaryTouchPoint = e.GetPrimaryTouchPoint(null);
TouchPointCollection points = e.GetTouchPoints(null);
foreach (TouchPoint point in points)
{
if (point.Action == TouchAction.Down)
到目前为止,我已经尝试过了,point.TouchDevice.DirectlyOver
但这只给了我元素类型(shape
,button
等)。我想弄清楚x:name
.