public PlayerBoardXF() { Element = new SkiaSharpGameBoardXF(); Element.EnableTouchEvents = true; Element.Touch += ThisElement_Touch; Element.PaintSurface += ThisElement_PaintSurface; }
public GameBoardXF() { Element = new SkiaSharpGameBoardXF(); Element.EnableTouchEvents = true; Element.Touch += ThisElement_Touch; Element.PaintSurface += ThisElement_PaintSurface; _otherElement = new SKCanvasView(); _otherElement.PaintSurface += OtherPaint; }
public GameBoardXF(IEventAggregator aggregator) { Element = new SkiaSharpGameBoardXF(); _aggregator = aggregator; GameBoardGraphicsCP privateBoard = Resolve <GameBoardGraphicsCP>(); Element.EnableTouchEvents = true; Element.Touch += ThisElement_Touch; Element.PaintSurface += ThisElement_PaintSurface; SKSize thisSize = privateBoard.SuggestedSize(); WidthRequest = thisSize.Width; HeightRequest = thisSize.Height; HorizontalOptions = LayoutOptions.Start; VerticalOptions = LayoutOptions.Start; EventAggregator thisT = Resolve <EventAggregator>(); thisT.Subscribe(this, EnumRepaintCategories.FromSkiasharpboard.ToString()); Content = Element; }
public GameBoardXF() { Element = new SkiaSharpGameBoardXF(); }