public void LoadBoard()
        {
            GameBoardGraphicsCP privateBoard = Resolve <GameBoardGraphicsCP>();

            MouseUp += GameboardWPF_MouseUp;
            Element.PaintSurface += ThisElement_PaintSurface;
            SKSize thisSize = privateBoard.SuggestedSize();

            Width  = thisSize.Width;
            Height = thisSize.Height;
            EventAggregator thisT = Resolve <EventAggregator>();

            thisT.Subscribe(this, EnumRepaintCategories.FromSkiasharpboard.ToString());
            Content = Element;
        }
        public GameBoardWPF(IEventAggregator aggregator)
        {
            _aggregator = aggregator;
            Element     = new SkiaSharpGameBoard();
            GameBoardGraphicsCP privateBoard = Resolve <GameBoardGraphicsCP>();

            MouseUp += GameboardWPF_MouseUp;
            Element.PaintSurface += ThisElement_PaintSurface;
            SKSize thisSize = privateBoard.SuggestedSize();

            Width  = thisSize.Width;
            Height = thisSize.Height;
            _aggregator.Subscribe(this, EnumRepaintCategories.FromSkiasharpboard.ToString());
            Content = Element;
        }
        public void LoadBoard()
        {
            GameBoardGraphicsCP PrivateBoard = Resolve <GameBoardGraphicsCP>();

            Element.EnableTouchEvents = true;
            Element.Touch            += ThisElement_Touch;
            Element.PaintSurface     += ThisElement_PaintSurface;
            SKSize thisSize = PrivateBoard.SuggestedSize();

            WidthRequest      = thisSize.Width;
            VerticalOptions   = LayoutOptions.Start;
            HorizontalOptions = LayoutOptions.Start;
            HeightRequest     = thisSize.Height;
            EventAggregator thisT = Resolve <EventAggregator>();

            thisT.Subscribe(this, EnumRepaintCategories.FromSkiasharpboard.ToString());
            Content = Element;
        }