Example #1
0
 public static void AddMotionTrackingUpdatedHandlerHandledEventsToo(DependencyObject d, MotionTrackingEventHandler handler, bool handledEventsToo)
 {
     UIElement element = d as UIElement;
     if (element != null)
     {
         element.AddHandler(MotionTrackingUpdatedEvent, handler, handledEventsToo);
     }
 }
Example #2
0
 public static void RemoveMotionTrackingLostHandler(DependencyObject d, MotionTrackingEventHandler handler)
 {
     UIElement element = d as UIElement;
     if (element != null)
     {
         element.RemoveHandler(MotionTrackingLostEvent, handler);
     }
 }
Example #3
0
 public static void AddMotionTrackingUpdatedHandler(DependencyObject d, MotionTrackingEventHandler handler)
 {
     AddMotionTrackingUpdatedHandlerHandledEventsToo(d, handler, false);
 }