protected override void Dispose(bool disposing)
 {
     //sfPopUp.DismissPopup(true);
     if (backgroundView != null)
     {
         mainView.WillRemoveSubview(backgroundView);
         mainView.SendSubviewToBack(backgroundView);
         sfPopUp.RemoveFromSuperview();
         backgroundView.BackgroundColor        = UIColor.Brown;
         backgroundView.UserInteractionEnabled = false;
         backgroundView.Frame = new CGRect(0, 0, 0, 0);
         backgroundView.RemoveFromSuperview();
         nextButton.RemoveFromSuperview();
         backgroundView = null;
     }
     base.Dispose(disposing);
     if (SfGrid != null)
     {
         SfGrid.Dispose();
     }
     if (sfPopUp != null)
     {
         sfPopUp.Dispose();
     }
     mainView = null;
 }
 private void MovieList_ViewDetachedFromWindow(object sender, View.ViewDetachedFromWindowEventArgs e)
 {
     if (initialPopup != null)
     {
         initialPopup.Dispose();
         initialPopup = null;
     }
 }
 private void SfGrid_ViewDetachedFromWindow(object sender, View.ViewDetachedFromWindowEventArgs e)
 {
     pageExited      = true;
     sfPopUp.Opened -= SfPopUp_PopupOpened;
     sfPopUp.Closed -= SfPopUp_PopupClosed;
     sfPopUp.PopupView.ClearAnimation();
     sfPopUp.Dispose();
     sfPopUp = null;
 }
Esempio n. 4
0
 private void SampleExited(object sender, View.ViewDetachedFromWindowEventArgs e)
 {
     initialPopup.Dispose();
     initialPopup = null;
     if (detailsPopup != null)
     {
         detailsPopup.Dispose();
         detailsPopup = null;
     }
 }
Esempio n. 5
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn       -= GridGenerateColumns;
     allowsorting.CheckedChange        -= OnAllowSortingChanged;
     allowResizing.CheckedChange       -= OnAllowResizingChanged;
     allowEditing.CheckedChange        -= OnAllowEditingChanged;
     allowRowDragAndDrop.CheckedChange -= OnAllowRowDragAndDropChanged;
     sfPopUp.Opened -= SfPopUp_PopupOpened;
     sfPopUp.Closed -= SfPopUp_PopupClosed;
     imageView       = null;
     sfPopUp.PopupView.ClearAnimation();
     anim           = null;
     backgroundView = null;
     sfPopUp.Dispose();
     sfPopUp             = null;
     viewModel           = null;
     allowEditing        = null;
     allowResizing       = null;
     allowRowDragAndDrop = null;
     allowsorting        = null;
     sfGrid.Dispose();
     sfGrid = null;
 }