Пример #1
0
        public ProcessWatcher()
        {
            if (_refreshInterval == null)
            {
                _refreshInterval = new XamlResource <int>("ReloadedProcessListRefreshInterval");
            }

            _processes = new ObservableCollection <int>(Shared.ProcessExtensions.GetProcessIds());
            _processes.CollectionChanged += ProcessesChanged;
            _timer = new Timer(Tick, null, TimeSpan.FromMilliseconds(0), TimeSpan.FromMilliseconds(_refreshInterval.Get()));
        }
Пример #2
0
        public ReloadedPage()
        {
            // We play the animation once the content is rendered.
            // So before we play the animation, we must hide it so the first frame is not seen.
            XamlEntrySlideAnimationDuration = new XamlResource <double>("EntrySlideAnimationDuration");
            XamlEntryFadeAnimationDuration  = new XamlResource <double>("EntryFadeAnimationDuration");
            XamlEntryFadeOpacityStart       = new XamlResource <double>("EntryFadeOpacityStart");

            XamlExitSlideAnimationDuration = new XamlResource <double>("ExitSlideAnimationDuration");
            XamlExitFadeAnimationDuration  = new XamlResource <double>("ExitFadeAnimationDuration");
            XamlExitFadeOpacityEnd         = new XamlResource <double>("ExitFadeOpacityEnd");
        }