public void StartLoader(string text = "loading") { if (_page != null && _prog == null) { try { _prog = _page.GetProgressIndicator(); } catch { } } ; Deployment.Current.Dispatcher.BeginInvoke(() => { _prog.IsIndeterminate = true; _prog.IsVisible = true; _prog.Text = text; }); }