Example #1
0
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     info                 = Models.InfoModel.getInstance();
     infoTitle            = info.getInfoName();
     pageTitle.Text       = info.getInfoName();
     InfoList.ItemsSource = info.getInfoTitleList();
     this.navigationHelper.OnNavigatedTo(e);
 }
        public JsonResult GetModel(int eventId)
        {
            var model = new Models.InfoModel();

            model.Init(eventId);
            return(Json(new
            {
                message = "Success",
                model = JsonSerializer.Serialize(model)
            }));
        }
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the  
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method 
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     info = Models.InfoModel.getInstance();
     infoTitle = info.getInfoName();
     pageTitle.Text = info.getInfoName();
     InfoList.ItemsSource = info.getInfoTitleList();
     this.navigationHelper.OnNavigatedTo(e);
 }