예제 #1
0
        public MainPage()
        {
            this.InitializeComponent();
            _navigationHelper = new NavigationHelper(this);
            
            _mainViewModel = _mainViewModel ?? new MainViewModel();

            DataContext = this;
        }
예제 #2
0
        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
            _navigationHelper = new NavigationHelper(this);

            _mainViewModel = _mainViewModel ?? new MainViewModel();
            DataContext = this;

            SizeChanged += OnSizeChanged;
        }
예제 #3
0
        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
            _navigationHelper = new NavigationHelper(this);
            
            _mainViewModel = _mainViewModel ?? new MainViewModel();

            DataContext = this;
            
            ApplicationView.GetForCurrentView().
                SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);
        }