protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Frame rootFrame = Window.Current.Content as Frame;

            //查看是否可以返回,若可以返回,返回按钮视为可见,否则折叠
            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = rootFrame.CanGoBack ?
                                                                                      AppViewBackButtonVisibility.Visible :
                                                                                      AppViewBackButtonVisibility.Collapsed;
            ViewModel = ((ViewModels.MovieItemViewModel)e.Parameter);
            if (ViewModel.SelectItem == null)
            {
                //当没有电影项被选中时,按钮显示为create
                CreateBtn.Content = "Create";
                //var i = new MessageDialog("Welcome!").ShowAsync();
            }
            else
            {
                //当电影项被选中时,按钮显示为update
                CreateBtn.Content = "Update";
                //将相关数据赋值给对应条目,使被选中的电影项的数据显示出来
                Description.Text   = ViewModel.SelectItem.description;
                Title.Text         = ViewModel.SelectItem.title;
                Rank.SelectedValue = ViewModel.SelectItem.rank;
                Review.Text        = ViewModel.SelectItem.review;
                // ...
            }
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Frame rootFrame = Window.Current.Content as Frame;

            DataTransferManager.GetForCurrentView().DataRequested += OnShareDataRequested;

            if (rootFrame.CanGoBack)
            {
                // Show UI in title bar if opted-in and in-app backstack is not empty.
                SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
                    AppViewBackButtonVisibility.Visible;
            }
            else
            {
                // Remove the UI from the title bar if in-app back stack is empty.
                SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
                    AppViewBackButtonVisibility.Collapsed;
            }

            if (e.Parameter.GetType() == typeof(ViewModels.MovieItemViewModel))
            {
                this.ViewModel = (ViewModels.MovieItemViewModel)(e.Parameter);
            }
        }