public SearchResults()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Enabled;

            //Set view models fields
            _searchViewModel = (SearchViewModel)DataContext;
        }
        public MainPage()
        {
            this.InitializeComponent();
            this.NavigationCacheMode = NavigationCacheMode.Required;

            //Set view models fields
            _mainViewModel = (MainViewModel)DataContext;
            _searchViewModel = (SearchViewModel)SearchGrid.DataContext;

            //Hide Search, without animation
            VisualStateManager.GoToState(this, HiddenStateName, false);
        }