Inheritance: ViewModelBase
Esempio n. 1
0
		public SnapsPage()
		{
			InitializeComponent();

			DataContext = ViewModel = new SnapsViewModel();

			_navigationHelper = new NavigationHelper(this);
			_navigationHelper.LoadState += NavigationHelper_LoadState;
			_navigationHelper.SaveState += NavigationHelper_SaveState;
			
#if !DEBUG
			Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
#endif

			_holdingTimer = new DispatcherTimer {Interval = new TimeSpan(0, 0, 0, 0, 400)};
			_holdingTimer.Tick += HoldingTimerOnTick;

			// Make this default later
			MediaGrid.Visibility = Visibility.Collapsed;

			// Set up hardware button events
			HardwareButtons.BackPressed += HardwareButtonsOnBackPressed;
		}