private void HideEditGrid() { var da = new DoubleAnimation { Duration = TimeSpan.FromSeconds(0.1), From = 40, To = 0 }; EditGrid.BeginAnimation(HeightProperty, da); LockControls(true); }
private void ShowEditGrid() { if (EditGrid.Height == 40) { return; } var da = new DoubleAnimation { Duration = TimeSpan.FromSeconds(0.1), From = 0, To = 40 }; EditGrid.BeginAnimation(HeightProperty, da); AdditOperationsNameTextBox.Focus(); LockControls(); }