void _gesturesinterpreter_Tap(object sender, GestureTapEventArgs e) { IEnumerable<UIElement> hits = VisualTreeHelper.FindElementsInHostCoordinates(e.TapLocation, this); foreach (FrameworkElement uiel in hits) { bool hookable = (bool)uiel.GetValue(HookableProperty); if (uiel != null && hookable) { _justtapped = true; if (ElementTapped != null) ElementTapped(this, new ElementTappedEventArgs(uiel, e.TapLocation)); break; } } }
void _gesturesinterpreter_Tap(object sender, GestureTapEventArgs e) { if (Tap != null) Tap(this, e); }
void MultiScaleImage_Tap(object sender, GestureTapEventArgs e) { Point p = Application.Current.RootVisual.TransformToVisual(_msi).Transform(e.TapLocation); _zoomfactor *= 1.5; Zoom(1.5, new Point(p.X, p.Y)); }
void _gesturesinterpreter_Tap(object sender, GestureTapEventArgs e) { IEnumerable<UIElement> hitresults = VisualTreeHelper.FindElementsInHostCoordinates(e.TapLocation, this); foreach (UIElement el in hitresults) { if (Tapped != null) Tapped(el as FrameworkElement, e.TapLocation); } _transformhelper.Animate(0.0, new Point(1.0, 1.0), _transformhelper.Translate, 1.0); Animations.Animator.AnimateProperty(this, "Opacity", this.Opacity, 1.0, 1.0, null); }