Example #1
0
        private void OnSortClick(object sender, RoutedEventArgs e)
        {
            var sortButton = sender as Button;

            if (sortButton == null)
            {
                return;
            }

            MenuFlyout menuFlyout = DialogService.CreateSortMenu(ViewModel.SavedForOffline);

            menuFlyout.Placement = FlyoutPlacementMode.Bottom;
            menuFlyout.ShowAt(sortButton);
        }
Example #2
0
        private void OnSortClick(object sender, RoutedEventArgs e)
        {
            // Camera uploads view does not allow change the sort type
            if (MainPivot.SelectedItem.Equals(CameraUploadsPivot))
            {
                return;
            }

            var sortButton = sender as Button;

            if (sortButton == null)
            {
                return;
            }

            MenuFlyout menuFlyout = DialogService.CreateSortMenu(ViewModel.ActiveFolderView);

            menuFlyout.Placement = FlyoutPlacementMode.Bottom;
            menuFlyout.ShowAt(sortButton);
        }