private void LoadMenu() { this.Dispatcher.Invoke(new Action(() => { LevelPlaceholder.Content = new LevelSelect(); //LevelSelectControl.PopulateLevels(); XamlHelper.HideWithAnimation(BoardContainer); XamlHelper.HideWithAnimation(BackImage); XamlHelper.HideWithAnimation(RefreshImage); XamlHelper.ShowWithAnimation(LevelsContainer); XamlHelper.ShowWithAnimation(CloseImage); XamlHelper.ShowWithAnimation(AboutImage); _boardControl = null; })); }
public void LevelSelected() { _boardControl = new PegSolitaire(); BoardPlaceholder.Content = _boardControl; LoadBoard(); }