Beispiel #1
0
        public Page2()
        {
            this.InitializeComponent();
            ViewModel   = new TheViewModel();
            DataContext = ViewModel;

            ViewModel.LoadData();
        }
Beispiel #2
0
        public NewPage()
        {
            this.InitializeComponent();
            var viewTitleBar = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar;

            viewTitleBar.BackgroundColor       = Windows.UI.Colors.CornflowerBlue;
            viewTitleBar.ButtonBackgroundColor = Windows.UI.Colors.CornflowerBlue;
            ViewModel   = new TheViewModel();
            DataContext = ViewModel;

            ViewModel.LoadData();
        }