public MainPage() { InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += navigationHelper_LoadState; _navigationHelper.SaveState += navigationHelper_SaveState; }
public RoomPage() { InitializeComponent(); _eventService = ServiceLocator.Current.GetInstance<IEventService>(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += NavigationHelper_LoadState; _navigationHelper.SaveState += NavigationHelper_SaveState; }
public FullImagePage() { InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += NavigationHelper_LoadState; _navigationHelper.SaveState += NavigationHelper_SaveState; LayoutUpdated += FullImagePage_LayoutUpdated; }
public MainPage() { // retrieve status bar var statusBar = StatusBar.GetForCurrentView(); // set status bar color statusBar.ForegroundColor = Colors.Black; // set progress indicator, to use it in a global service ServiceLocator.Current.GetInstance<IProgressIndicatorService>().ProgressIndicator = statusBar.ProgressIndicator; InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += NavigationHelper_LoadState; _navigationHelper.SaveState += NavigationHelper_SaveState; }
public SplashScreenPage() { InitializeComponent(); _navigationHelper = new NavigationHelper(this); _navigationHelper.LoadState += NavigationHelper_LoadState; _navigationHelper.SaveState += NavigationHelper_SaveState; // Login on Gitter API using Timer var dispatcherTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(500) }; dispatcherTimer.Tick += async (sender, o) => { dispatcherTimer.Stop(); await ViewModelLocator.Login.LoginAsync(); }; dispatcherTimer.Start(); }