Prism Sample 18-NavigationCallback

同17相比,在导航方法中增加了回调函数

private void Navigate(string navigatePath)
        {
            if (navigatePath != null)
                _regionManager.RequestNavigate("ContentRegion", navigatePath, NavigationComplete);
        }

        private void NavigationComplete(NavigationResult result)
        {
            System.Windows.MessageBox.Show(String.Format("Navigation to {0} complete. ", result.Context.Uri));
        }

 

posted @ 2021-06-16 10:13  cbaa  阅读(127)  评论(0编辑  收藏  举报