Пример #1
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (contentSetterTask != null)
     {
         contentSetterTask.Cancel();
     }
 }
Пример #2
0
 public void Dispose()
 {
     pollingTask.Cancel();
     longList.ItemRealized   -= LLS_ItemRealized;
     longList.ItemUnrealized -= LLS_ItemUnrealized;
     items.Clear();
 }
Пример #3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (locationMarkingTask != null)
     {
         locationMarkingTask.Cancel();
     }
     foreach (var task in Tasks)
     {
         task.Cancel();
     }
 }
Пример #4
0
 public override void Dispose()
 {
     base.Dispose();
     if (locationUpdaterTask != null)
     {
         locationUpdaterTask.Cancel();
     }
     if (timeUpdaterTask != null)
     {
         timeUpdaterTask.Cancel();
     }
 }
Пример #5
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (contentSetterTask != null)
     {
         contentSetterTask.Cancel();
     }
     if (flashTask != null)
     {
         flashTask.Cancel();
     }
     if (llObserver != null)
     {
         llObserver.Dispose();
         llObserver = null;
     }
 }
Пример #6
0
        private void addScrollingHandlers()
        {
            RootFrame.PointerPressed += ContentPanel_PointerPressed;
            speedMonitorTask          = new PeriodicTask(50, monitorSpeed);
            speedMonitorTask.Run();

            var page = ContentPanel.FirstVisualParent <Page>();

            page.PointerMoved    += Page_PointerMoved;
            page.PointerReleased += Page_PointerReleased;
            this.Unloaded        += (sender, args) =>
            {
                page.PointerMoved    -= Page_PointerMoved;
                page.PointerReleased -= Page_PointerReleased;
                speedMonitorTask.Cancel();
            };
        }