Пример #1
0
        private void Button_Tapped(object sender, TappedRoutedEventArgs e)
        {
            /// ms-appx:///Assets/Icons/sort.png
            if (SortByDesc == null || SortByDesc == false)
            {
                SortByDesc       = true;
                IconImage.Source = new BitmapImage(new Uri("ms-appx:///Assets/Icons/sort.png"));
                IconImageProjection.RotationX = 0;

                SortRequested?.Invoke(this, true);
            }
            else
            {
                SortByDesc = false;
                IconImageProjection.RotationX = 180;

                SortRequested?.Invoke(this, false);
            }
        }
Пример #2
0
 private void sortButton_Click(object sender, EventArgs e)
 {
     Sort();
     SortRequested?.Invoke(sender, EventArgs.Empty);
 }