private void SortButton_Click(object sender, RoutedEventArgs e)
        {
            SharedFunctions.OnSortButtonClick((Button)sender);
            MyLibraryListBox.Items.SortDescriptions.Clear();

            if (((Button)sender).Content.ToString() == "Z-A")
            {
                MyLibraryListBox.Items.SortDescriptions.Add(new System.ComponentModel.SortDescription("Title", System.ComponentModel.ListSortDirection.Ascending));
            }
            else
            {
                MyLibraryListBox.Items.SortDescriptions.Add(new System.ComponentModel.SortDescription("Title", System.ComponentModel.ListSortDirection.Descending));
            }
        }
예제 #2
0
 private void SortButton_Click(object sender, RoutedEventArgs e)
 {
     SharedFunctions.OnSortButtonClick((Button)sender);
 }
예제 #3
0
 private void MenuContentButton_Checked(object sender, RoutedEventArgs e)
 {
     SharedFunctions.RadioButtonAnimation((RadioButton)sender, MediaElementsRadioButton, this, MediaElementsMenuRectangle, WidthProperty, MarginProperty);
 }