protected async Task BuildXAMLAsync() { WindowHelper.CurrentWindow = this; WindowHelper.SetDefaultLocation(); var tempSize = DefaultWindowSize(); WindowHelper.SetSize(tempSize.Width, tempSize.Height); Background = Brushes.Navy; OtherCommonButtons(); //not sure if we need but may. _start.StartVariables(BasicData); //this is for nick names and any other relevent info needed. Show(); //try this way. PrepUI(); await PopulateUIAsync(); FinalizeUI(); }
protected async Task BuildXAMLAsync() { BackgroundColor = Color.Navy; Padding = new Thickness(3, 3, 3, 3); if (_screen.CanPlay(GameData) == false) { UIPlatform.ExitApp(); return; //i know i could not show messagebox. so it just has to close (because game is not supported for given platform). } CustomPlatform.SupportedOrientation(GameData); OtherCommonButtons(); //not sure if we need but may. _start.StartVariables(BasicData); //this is for nick names and any other relevent info needed. PrepUI(); await PopulateUIAsync(); FinalizeUI(); }