public PlaySingleHard()
        {
            PageHeight = Application.Current.MainPage.Height / 2;

            GameViewModel = new GameArenaViewModel
            {
                IsLoading = true
            };
            this.BindingContext = GameViewModel;
            InitializeComponent();
            InitializeGameArena();
            GameViewModel.IsLoading = false;
        }
 private void Reset_Clicked(object sender, EventArgs e)
 {
     GameViewModel = new GameArenaViewModel
     {
         IsLoading = true
     };
     InitializeGameArena();
     foreach (var item in CanvasElements)
     {
         this.FindByName <SKCanvasView>(item).InvalidateSurface();
     }
     GameViewModel.IsLoading = false;
     this.BindingContext     = GameViewModel;
 }
        public PlayMultiplayerOnline()
        {
            PageHeight = Application.Current.MainPage.Height / 2;

            GameViewModel = new GameArenaViewModel
            {
                IsLoading = true
            };
            this.BindingContext = GameViewModel;
            InitializeComponent();
            AbsoluteLayout.SetLayoutFlags(LoadingIndicator, AbsoluteLayoutFlags.PositionProportional);
            AbsoluteLayout.SetLayoutBounds(LoadingIndicator, new Rectangle(0.5, 0.5, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize));
            InitializeGameArena();
            GameViewModel.IsLoading = false;
        }