/* TODO: For each viewmodel, add a public property with a private setter like this:
         * public _VIEWNAME_ViewModel _VIEWNAME_ViewModel { get; private set; }
         * Note that the New-View and New-ViewModel commands add the above code automatically (see http://github.com/MacawNL/QuickCross#new-viewmodel). */

        public void ContinueToMain()
        {
            if (MainViewModel == null)
            {
                MainViewModel = new MainViewModelDesign();                        // TODO: Once MainViewModel has runtime data, instantiate that instead of MainViewModelDesign
            }
            // Any actions to update the viewmodel go here
            RunOnUIThread(() => _navigator.NavigateToMainView());
        }
Exemple #2
0
        /* TODO: For each viewmodel, add a public property with a private setter like this:
         * public _VIEWNAME_ViewModel _VIEWNAME_ViewModel { get; private set; }
         * Note that the New-View and New-ViewModel commands add the above code automatically (see http://github.com/MacawNL/MvvmQuickCross#new-viewmodel). */

        public void ContinueToMain(bool skipNavigation = false)
        {
            if (MainViewModel == null)
            {
                MainViewModel = new MainViewModelDesign();                        // TODO: Once MainViewModel has runtime data, instantiate that instead of MainViewModelDesign
            }
            // Any actions to update the viewmodel go here
            if (!skipNavigation)
            {
                RunOnUIThread(() => _navigator.NavigateToMainView(CurrentNavigationContext));
            }
        }