Ejemplo n.º 1
0
 public NewsPage(NewsPage_Model model)
     : base(model)
 {
     this.InitializeComponent();
     this.RegisterPropertyChangedCallback(ViewModelProperty, (_, __) =>
     {
         StrongTypeViewModel = this.ViewModel as NewsPage_Model;
     });
     StrongTypeViewModel = this.ViewModel as NewsPage_Model;
 }
Ejemplo n.º 2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     StrongTypeViewModel= e.Parameter as NewsPage_Model;
     DataContext = StrongTypeViewModel;
     base.OnNavigatedTo(e);
 }