Ejemplo n.º 1
0
 public void Close()
 {
     DispatcherHelpers.RunOnDispatcher(() =>
     {
         _label.Hide();
         _box.Hide();
         _entry.Hide();
         _button.Hide();
         _popup.Hide();
         Closed?.Invoke(this, null);
     });
 }
Ejemplo n.º 2
0
 public void Close()
 {
     DispatcherHelpers.RunOnDispatcher(() =>
     {
         if (scrollBox != null)
         {
             scrollBox.Hide();
             scrollBox.Unrealize();
             scrollBox = null;
         }
         if (scroller != null)
         {
             scroller.Hide();
             scroller.Unrealize();
             scroller = null;
         }
         if (background != null)
         {
             background.Hide();
             background.Unrealize();
             background = null;
         }
         if (reloadBtn != null)
         {
             reloadBtn.Hide();
             reloadBtn.Unrealize();
             reloadBtn = null;
         }
         if (reloadBg != null)
         {
             reloadBg.Hide();
             reloadBg.Unrealize();
             reloadBg = null;
         }
         if (redboxTitle != null)
         {
             redboxTitle.Hide();
             redboxTitle.Unrealize();
             redboxTitle = null;
         }
         if (labelList != null)
         {
             foreach (var item in labelList)
             {
                 item.Hide();
                 item.Unrealize();
             }
             labelList.Clear();
             labelList = null;
         }
         Closed?.Invoke(this, null);
     });
 }