void HandleOnScrolled(CGPoint contentOffset) { foreach (GridViewCell nativeCell in _gridCollectionView.VisibleCells) { nativeCell.ViewCell.OnScroll(contentOffset.ToPoint(), new Xamarin.Forms.Point(nativeCell.Frame.X, nativeCell.Frame.Y)); } }
void AddPointToPath(CGPoint currentPoint) { currentPath.LineTo(currentPoint); Element.Points.CollectionChanged -= OnPointsCollectionChanged; var point = currentPoint.ToPoint(); Element.Points.Add(point); Element.Points.CollectionChanged += OnPointsCollectionChanged; }
Point GetVelocity(UIPanGestureRecognizer gr) { CGPoint cGPoint = gr.VelocityInView(null); return(cGPoint.ToPoint()); }
public static bool IsTouchedBy(this UIView view, CGPoint cgPoint) { var targetRect = view.BoundsInFormsCoord(); return(targetRect.Contains(cgPoint.ToPoint())); }