コード例 #1
0
        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;
                }
            }
        }
コード例 #2
0
 private void SetProgressIndicator(PhoneApplicationPage pp)
 {
     if (pp != null)
     {
         pp.SetValue(_progressIndicatorProperty, _mangoIndicator);
     }
 }
コード例 #3
0
        private BusyIndicatorManager(PhoneApplicationPage page)
        {
            _page = page;

            if (_progressIndicator == null)
            {
                _progressIndicator = new ProgressIndicator();
            }

            _page.SetValue(SystemTray.ProgressIndicatorProperty, _progressIndicator);
        }
コード例 #4
0
 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;
 }
コード例 #5
0
        private BusyIndicatorManager(PhoneApplicationPage page)
        {
            _page = page;

            if (_progressIndicator == null)
            {
                _progressIndicator = new ProgressIndicator();
            }

            _page.SetValue(SystemTray.ProgressIndicatorProperty, _progressIndicator);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
 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);
     }
 }
コード例 #8
0
 private static void SetHasEventsWired(PhoneApplicationPage obj, bool value)
 {
     obj.SetValue(HasEventsWiredProperty, value);
 }
コード例 #9
0
 private void SetProgressIndicator(PhoneApplicationPage pp)
 {
     if (pp != null)
     {
         pp.SetValue(_progressIndicatorProperty, _mangoIndicator);
     }
 }
コード例 #10
0
 /// <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);
 }
コード例 #11
0
ファイル: PhonePage.cs プロジェクト: fstn/WindowsPhoneApps
		public static void SetApplicationBar(PhoneApplicationPage obj, BindableApplicationBar value)
		{
			obj.SetValue(ApplicationBarProperty, value);
		}