close

1.加一個判斷用的bool flag

2.在 PointerPressed 中

if (_isProcessingGestureRecognizer) {
    return;
}

 

_isProcessingGestureRecognizer = true;

 

3.在PointerReleased 中

_isProcessingGestureRecognizer = false;

 

參考資料:

https://social.msdn.microsoft.com/Forums/en-US/ceb4a3dc-05f4-4361-bbf7-039310a5d0d3/failed-to-start-tracking-the-pointer-because-it-is-already-being-tracked?forum=winappswithcsharp

arrow
arrow
    全站熱搜

    小賢 發表在 痞客邦 留言(0) 人氣()