private void NotifyValueChanged() { if (_page == null) { return; } if (_mangoIndicator != null) { if (_loadingCount < 1) { SetMessage(string.Empty); _page.SetValue(SystemTray.IsVisibleProperty, false); } _mangoIndicator.IsIndeterminate = _loadingCount > 0 || IsDataManagerLoading; if (_mangoIndicator.IsIndeterminate) { _page.SetValue(SystemTray.IsVisibleProperty, true); } // for now, just make sure it's always visible. if (_mangoIndicator.IsVisible == false) { _mangoIndicator.IsVisible = true; } } }
private void SetProgressIndicator(PhoneApplicationPage pp) { if (pp != null) { pp.SetValue(_progressIndicatorProperty, _mangoIndicator); } }
private BusyIndicatorManager(PhoneApplicationPage page) { _page = page; if (_progressIndicator == null) { _progressIndicator = new ProgressIndicator(); } _page.SetValue(SystemTray.ProgressIndicatorProperty, _progressIndicator); }
public static IBusyIndicatorManager Create(PhoneApplicationPage page) { var busyIndicator = page.GetValue(BusyIndicatorProperty) as IBusyIndicatorManager; if (busyIndicator == null) { busyIndicator = new BusyIndicatorManager(page); page.SetValue(BusyIndicatorProperty, busyIndicator); } return busyIndicator; }
public static IBusyIndicatorManager Create(PhoneApplicationPage page) { var busyIndicator = page.GetValue(BusyIndicatorProperty) as IBusyIndicatorManager; if (busyIndicator == null) { busyIndicator = new BusyIndicatorManager(page); page.SetValue(BusyIndicatorProperty, busyIndicator); } return(busyIndicator); }
private void OnRootFrameNavigated(object sender, NavigationEventArgs e) { // Use in Mango to share a single progress indicator instance. var ee = e.Content; _page = ee as PhoneApplicationPage; if (_page != null) { SystemTray.SetBackgroundColor(_page, Color.FromArgb(255, 240,249,255)); SystemTray.SetForegroundColor(_page, Color.FromArgb(255, 31,117,204)); _page.SetValue(SystemTray.OpacityProperty, 0.99); _page.SetValue(SystemTray.ProgressIndicatorProperty, _mangoIndicator); } }
private static void SetHasEventsWired(PhoneApplicationPage obj, bool value) { obj.SetValue(HasEventsWiredProperty, value); }
/// <summary> /// Sets the Application Bar of the page. /// </summary> /// <param name="obj">The page. </param> /// <param name="value">The <see cref="BindableApplicationBar"/>.</param> public static void SetApplicationBar(PhoneApplicationPage obj, BindableApplicationBar value) { obj.SetValue(ApplicationBarProperty, value); }
public static void SetApplicationBar(PhoneApplicationPage obj, BindableApplicationBar value) { obj.SetValue(ApplicationBarProperty, value); }