示例#1
0
 private void unregisterBottomObserver()
 {
     if (llObserver != null)
     {
         llObserver.ScrollToBottom -= ContentListView_ScrollToBottom;
         llObserver.Dispose();
         llObserver = null;
     }
 }
示例#2
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (contentSetterTask != null)
     {
         contentSetterTask.Cancel();
     }
     if (flashTask != null)
     {
         flashTask.Cancel();
     }
     if (llObserver != null)
     {
         llObserver.Dispose();
         llObserver = null;
     }
 }