private void LoadBoard() { this.Dispatcher.Invoke(new Action(() => { XamlHelper.HideWithAnimation(LevelsContainer); XamlHelper.HideWithAnimation(CloseImage); XamlHelper.HideWithAnimation(AboutImage); XamlHelper.ShowWithAnimation(BoardContainer); XamlHelper.ShowWithAnimation(BackImage); XamlHelper.ShowWithAnimation(RefreshImage); })); }
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; })); }