Ejemplo n.º 1
0
 private async void Dashboard_TappedAsync(object sender, EventArgs e)
 {
     try
     {
         this.BindingContext = null;
         this.parentGrid.Children.Clear();
         this.Content = null;
         if (this.MySearchEditViewModel != null)
         {
             this.MySearchEditViewModel.BindingContext = null;
             this.MySearchEditViewModel = null;
         }
     }
     catch (Exception ex)
     {
     }
     GC.Collect();
     GC.SuppressFinalize(this);
     await Navigation.PopModalAsync();
 }
Ejemplo n.º 2
0
        public SearchEditChildView()
        {
            MySearchEditViewModel = new SearchEditViewModel();
            BindingContext        = MySearchEditViewModel;
            InitializeComponent();

            SelectCountryName.IsVisible = false;

            MessagingCenter.Subscribe <String, bool>(this, "Tab", (text, value) =>
            {
                LocationImageButton.IsTabStop = value;
                ChildFirstName.IsTabStop      = value;
                ChildLastName.IsTabStop       = value;
                CountryName.IsTabStop         = value;
                ChildID.IsTabStop             = value;
                DOB.IsTabStop            = value;
                EnrollmentDate.IsTabStop = value;
            });

            MySearchEditViewModel.SelectedLocations = new List <string>();
            LoadTree();
        }