/// <summary> /// Initializes the <see cref="Application.RootVisual"/> property. /// The initial UI will be displayed before the LoadUser operation has completed. /// The LoadUser operation will cause user to be logged in automatically if using Windows authentication or if the user had selected the "Keep me signed in" option on a previous login. /// </summary> protected virtual void InitializeRootVisual() { FuelTracker.Controls.BusyIndicator busyIndicator = new FuelTracker.Controls.BusyIndicator(); busyIndicator.Content = new MainPage(); busyIndicator.HorizontalContentAlignment = HorizontalAlignment.Stretch; busyIndicator.VerticalContentAlignment = VerticalAlignment.Stretch; this.RootVisual = busyIndicator; }