Esempio n. 1
0
        private void CurrentTimeline_ItemSwipe(object sender, UWPToolkit.Controls.ItemSwipeEventArgs e)
        {
            if(e.Direction == SwipeListDirection.Top)
            {
                // toggle visibility
                HistoryGrid.Visibility = Visibility.Visible;
                CurrentGrid.Visibility = Visibility.Collapsed;

                // invalidate 
                HistoryTodayTimeline.Start = DateTime.Today.AddHours(7);
                HistoryTodayTimeline.End = DateTime.Today.AddDays(1);
                HistoryTodayTimeline.Items = CreateTimelineItemsFor(DateTime.Today.Date, DateTime.Today.AddDays(1));
                HistoryTodayTimeline.SetupItems(CurrentTimeline.ActualHeight);
            }
            CurrentTimeline.ResetSwipe();
        }
Esempio n. 2
0
 private void HistoryTimeline_ItemSwipe(object sender, UWPToolkit.Controls.ItemSwipeEventArgs e)
 {
     if(e.Direction == SwipeListDirection.Buttom)
     {
         // toggle visibility
         CurrentGrid.Visibility = Visibility.Visible;
         HistoryGrid.Visibility = Visibility.Collapsed;
     }
     HistoryTimeline.ResetSwipe();
 }