private void closeAdvancedSettings(int duration = 100) { AdvancedOpen = false; advancedPanel.BeginDoubleAnimation(WidthProperty, 0, duration); }