Esempio n. 1
0
 void _gesturesinterpreter_Hold(object sender, GestureHoldEventArgs e)
 {
     IEnumerable<UIElement> hits = VisualTreeHelper.FindElementsInHostCoordinates(this.TransformToVisual(Application.Current.RootVisual).Transform(e.HoldLocation), this);
     foreach (FrameworkElement uiel in hits)
     {
         bool hookable = (bool)uiel.GetValue(HookableProperty);
         if (hookable && ElementHold != null) ElementHold(this, new ElementHoldEventArgs(uiel, e.HoldLocation));
         break;
     }
 }
Esempio n. 2
0
 void _gesturesinterpreter_Hold(object sender, GestureHoldEventArgs e)
 {
     if (Hold != null) Hold(this, e);
 }