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)); } }
private void SortButton_Click(object sender, RoutedEventArgs e) { SharedFunctions.OnSortButtonClick((Button)sender); }
private void MenuContentButton_Checked(object sender, RoutedEventArgs e) { SharedFunctions.RadioButtonAnimation((RadioButton)sender, MediaElementsRadioButton, this, MediaElementsMenuRectangle, WidthProperty, MarginProperty); }