private void closeSearch(int duration = 100) { SearchOpen = false; searchPanel.BeginDoubleAnimation(WidthProperty, 0, duration); }