protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { if (!App.Recipes.IsLoaded) { pi = new Microsoft.Phone.Shell.ProgressIndicator(); pi.IsIndeterminate = true; pi.Text = "Loading data, please wait..."; pi.IsVisible = true; Microsoft.Phone.Shell.SystemTray.SetIsVisible(this, true); Microsoft.Phone.Shell.SystemTray.SetProgressIndicator(this, pi); App.Recipes.RecipesLoaded += Recipes_RecipesLoaded; App.Recipes.LoadLocalDataAsync(); } base.OnNavigatedTo(e); }
protected async override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { if (!App.Recipes.IsLoaded) { pi = new Microsoft.Phone.Shell.ProgressIndicator(); pi.IsIndeterminate = true; pi.Text = "Loading data, please wait..."; pi.IsVisible = true; Microsoft.Phone.Shell.SystemTray.SetIsVisible(this, true); Microsoft.Phone.Shell.SystemTray.SetProgressIndicator(this, pi); await App.Recipes.LoadLocalDataAsync(); lstGroups.DataContext = App.Recipes.ItemGroups; pi.IsVisible = false; Microsoft.Phone.Shell.SystemTray.SetIsVisible(this, false); } base.OnNavigatedTo(e); }
internal StatusBarProgressIndicator(Microsoft.Phone.Shell.ProgressIndicator progressIndicator) { _progressIndicator = progressIndicator; }
internal StatusBarProgressIndicator(Microsoft.Phone.Shell.ProgressIndicator progressIndicator) { _progressIndicator = progressIndicator; }