Inheritance: Windows.UI.Xaml.DependencyObject
Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public EventPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
 }