Пример #1
0
        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();
            }
        }
Пример #2
0
        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();
            }
        }
 private void CloseSortGrid(PopoutListButton sender)
 {
     _isSortPreferencesOpen = false;
     sender.PopoutModeEnabled = false;
     SortGrid.SetValue(Grid.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(Grid.VisibilityProperty, Visibility.Visible);
     var sb = FindResource("OpeningSortGridStoryboard") as Storyboard;
     if (sb != null) sb.Begin();
 }