예제 #1
0
        private void MenuFlyoutItem_Click(object sender, RoutedEventArgs e)
        {
            var sd        = sender as MenuFlyoutItem;
            var selection = Sorting.Like;

            switch (sd.Name)
            {
            case "LikeFlyout":
                selection = Sorting.Like;
                break;

            case "CommentFlyout":
                selection = Sorting.Comment;
                break;

            case "RecentFlyout":
                selection = Sorting.Recent;
                break;
            }
            var list = HelpersClass.ChangeSorting(feedbacks, selection);

            feedbacks.Clear();
            list.ForEach(l => feedbacks.Add(l));
        }