상속: Windows.UI.Xaml.DependencyObject
예제 #1
0
        public FriendPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;

            #if !DEBUG
            Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
            #endif
        }
예제 #2
0
        public FriendPage()
        {
            InitializeComponent();

            _navigationHelper = new NavigationHelper(this);
            _navigationHelper.LoadState += NavigationHelper_LoadState;
            _navigationHelper.SaveState += NavigationHelper_SaveState;

            DataContext = ViewModel = new FriendViewModel();

            #if !DEBUG
            Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().IsScreenCaptureEnabled = false;
            #endif
        }
예제 #3
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;
		}