public MainPage() { this.InitializeComponent(); _navigationHelper = new NavigationHelper(this); _mainViewModel = _mainViewModel ?? new MainViewModel(); DataContext = this; }
public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; _navigationHelper = new NavigationHelper(this); _mainViewModel = _mainViewModel ?? new MainViewModel(); DataContext = this; SizeChanged += OnSizeChanged; }
public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; _navigationHelper = new NavigationHelper(this); _mainViewModel = _mainViewModel ?? new MainViewModel(); DataContext = this; ApplicationView.GetForCurrentView(). SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow); }