예제 #1
0
 public ReplyPage()
 {
     this.InitializeComponent();
     _vm = (ReplyViewModel) DataContext;
     this.navigationHelper = new NavigationHelper(this);
     ThreadWebView.ScriptNotify += ThreadWebView_ScriptNotify;
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
예제 #2
0
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// 
 /// Page specific logic should be placed in event handlers for the
 /// <see cref="GridCS.Common.NavigationHelper.LoadState" />
 /// and
 /// <see cref="GridCS.Common.NavigationHelper.SaveState" />
 /// .
 /// The navigation parameter is available in the LoadState method 
 /// in addition to page state preserved during an earlier session.
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     _vm = (ReplyViewModel) DataContext;
     _navigationHelper.OnNavigatedTo(e);
 }