Exemple #1
0
 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));
     }
 }
Exemple #2
0
        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());
        }
Exemple #4
0
        public static bool IsTouchedBy(this UIView view, CGPoint cgPoint)
        {
            var targetRect = view.BoundsInFormsCoord();

            return(targetRect.Contains(cgPoint.ToPoint()));
        }