public MainPage() { Instance = this; InitializeComponent(); model = new MainViewModel(); dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; appSettings = (AppSettings) App.Current.Resources["appSettings"]; Initialize(); StatusBar.GetForCurrentView().BackgroundOpacity = 0.50; }
public MainPage() { Instance = this; this.appSettings = (AppSettings)Application.Current.Resources["appSettings"]; this.InitializeComponent(); this.model = new MainViewModel(); this.dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; this.Initialize(); if (ApiInformation.IsTypePresent("Windows.Phone.UI.ViewManagement.StatusBar")) { if (StatusBar.GetForCurrentView() != null) { StatusBar.GetForCurrentView().BackgroundOpacity = 0.50; } } }