Esempio n. 1
0
 public static void ReleasePointerCapture(this IInputElement element, IPointerDevice device)
 {
     if (element == device.Captured)
     {
         device.Capture(null);
     }
 }
Esempio n. 2
0
 public static bool CapturePointer(this IInputElement element, IPointerDevice device)
 {
     device.Capture(element);
     return(device.Captured == element);
 }