private void CloseSortGrid(PopoutListButton sender) { _isSortPreferencesOpen = false; sender.PopoutModeEnabled = false; SortGrid.SetValue(VisibilityProperty, Visibility.Collapsed); var sb = FindResource("ClosingSortGridStoryboard") as Storyboard; if (sb != null) { sb.Begin(); } }
private void OpenSortGrid(PopoutListButton sender) { _isSortPreferencesOpen = true; sender.PopoutModeEnabled = true; SortGrid.SetValue(VisibilityProperty, Visibility.Visible); var sb = FindResource("OpeningSortGridStoryboard") as Storyboard; if (sb != null) { sb.Begin(); } }