protected override void ConnectHandler(W2DGraphicsView nativeView) { if (VirtualView is Polygon polygon) { polygon.Points.CollectionChanged += OnPointsCollectionChanged; } base.ConnectHandler(nativeView); }
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; }
public static void UpdateDrawable(this W2DGraphicsView PlatformGraphicsView, IGraphicsView graphicsView) { PlatformGraphicsView.Drawable = graphicsView.Drawable; }
public static void UpdateShape(this W2DGraphicsView nativeView, IShapeView shapeView) { nativeView.Drawable = new ShapeDrawable(shapeView); }
public static void InvalidateShape(this W2DGraphicsView nativeView, IShapeView shapeView) { nativeView.Invalidate(); }
public PlatformTouchGraphicsView() { ManipulationMode = ManipulationModes.All; Content = _platformGraphicsView = new W2DGraphicsView(); }
public PlatformTouchGraphicsView() { Content = _platformGraphicsView = new W2DGraphicsView(); }
public static void InvalidateBoxView(this W2DGraphicsView nativeView, IBoxView boxView) { nativeView.Invalidate(); }
public static void UpdateDrawable(this W2DGraphicsView nativeGraphicsView, IGraphicsView graphicsView) { nativeGraphicsView.Drawable = graphicsView.Drawable; }
public static void UpdateShape(this W2DGraphicsView platformView, IShapeView shapeView) { platformView.Drawable = new ShapeDrawable(shapeView); }
public static void InvalidateShape(this W2DGraphicsView platformView, IShapeView shapeView) { platformView.Invalidate(); }