Inheritance: Windows.UI.Xaml.DependencyObject
Exemple #1
0
        public HomePage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;

            _viewModel = MainViewModel.Single();
            _viewModel.NavigateAction = (evt) => Frame.Navigate(typeof(EventPage), evt);
            this.DataContext = _viewModel;

            this.Loaded += HomePage_Loaded;
        }
Exemple #2
0
 public EventPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
 }