private void StartGame() { #if NOESIS PlaneProjection projection = (PlaneProjection)_boardPanel.Projection; projection.ClearAnimation(PlaneProjection.RotationYProperty); #endif ScaleTransform t = (ScaleTransform)_boardPanel.RenderTransform; t.ClearAnimation(ScaleTransform.ScaleXProperty); t.ClearAnimation(ScaleTransform.ScaleYProperty); for (int row = 0; row < 3; ++row) { for (int col = 0; col < 3; ++col) { Cell cell = _board[row, col]; cell.Player = Player.None; cell.Button.ClearAnimation(UIElement.OpacityProperty); cell.Button.IsEnabled = true; cell.Button.IsChecked = false; VisualStateManager.GoToState(cell.Button, PlayerState, false); } } _progressAnimation.Begin(this, true); }