Exemplo n.º 1
0
        private void MyFeedback_ItemClick(object sender, ItemClickEventArgs e)
        {
            var selected = e.ClickedItem as Feedback;

            commentPage.SetNewFeedback(selected);

            if (this.Frame.ActualWidth <= App.WIDE_STATE)
            {
                FeedbackClickedTrigger.IsActive = true;
                BackToFeedbackTrigger.IsActive  = false;
            }
            else
            {
            }
        }
        private async void FeedbackListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (FeedbackListView.SelectedIndex == -1)
            {
                return;
            }
            var sd = sender as ListView;
            var fb = sd.SelectedItem as Feedback;

            if (this.Frame.ActualWidth <= App.WIDE_STATE)
            {
                FeedbackClickedTrigger.IsActive = true;
                BackToFeedbackTrigger.IsActive  = false;
            }
            else
            {
            }
            await commentPage.SetNewFeedback(fb != null?fb : new Feedback());
        }