コード例 #1
0
        protected override void ConnectHandler(W2DGraphicsView nativeView)
        {
            if (VirtualView is Polygon polygon)
            {
                polygon.Points.CollectionChanged += OnPointsCollectionChanged;
            }

            base.ConnectHandler(nativeView);
        }
コード例 #2
0
        protected override void DisconnectHandler(W2DGraphicsView nativeView)
        {
            if (VirtualView is Polyline polyline)
            {
                polyline.Points.CollectionChanged -= OnPointsCollectionChanged;
            }

            base.DisconnectHandler(nativeView);
        }
        public NativeGraphicsControlView()
        {
            _w2DGraphicsView = new W2DGraphicsView();

            Content = _w2DGraphicsView;

            PointerPressed  += OnPointerPressed;
            PointerMoved    += OnPointerMoved;
            PointerReleased += OnPointerReleased;
            PointerCanceled += OnPointerCanceled;
        }
コード例 #4
0
 public static void UpdateDrawable(this W2DGraphicsView PlatformGraphicsView, IGraphicsView graphicsView)
 {
     PlatformGraphicsView.Drawable = graphicsView.Drawable;
 }
コード例 #5
0
 public static void UpdateShape(this W2DGraphicsView nativeView, IShapeView shapeView)
 {
     nativeView.Drawable = new ShapeDrawable(shapeView);
 }
コード例 #6
0
 public static void InvalidateShape(this W2DGraphicsView nativeView, IShapeView shapeView)
 {
     nativeView.Invalidate();
 }
コード例 #7
0
        public PlatformTouchGraphicsView()
        {
            ManipulationMode = ManipulationModes.All;

            Content = _platformGraphicsView = new W2DGraphicsView();
        }
コード例 #8
0
 public PlatformTouchGraphicsView()
 {
     Content = _platformGraphicsView = new W2DGraphicsView();
 }
コード例 #9
0
 public static void InvalidateBoxView(this W2DGraphicsView nativeView, IBoxView boxView)
 {
     nativeView.Invalidate();
 }
コード例 #10
0
 public static void UpdateDrawable(this W2DGraphicsView nativeGraphicsView, IGraphicsView graphicsView)
 {
     nativeGraphicsView.Drawable = graphicsView.Drawable;
 }
コード例 #11
0
 public static void UpdateShape(this W2DGraphicsView platformView, IShapeView shapeView)
 {
     platformView.Drawable = new ShapeDrawable(shapeView);
 }
コード例 #12
0
 public static void InvalidateShape(this W2DGraphicsView platformView, IShapeView shapeView)
 {
     platformView.Invalidate();
 }