Ejemplo n.º 1
0
        /// <summary>
        /// Stop and reset the timer countdown.
        /// </summary>
        private void StopTimer()
        {
            SystemTimer.Stop();
            SystemTimer.Elapsed -= this.ExecuteEmptyStandbyList;

            ProgressBarTimer.Stop();
            this.TimerProgressBar.Value = 0;
        }
        public TextDialogWithTimer()
        {
            InitializeComponent();

            var animation = AnimationHelper.CreateAnimation(100, 5000);

            animation.EasingFunction = null;
            animation.Completed     += Animation_Completed;
            ProgressBarTimer.BeginAnimation(RangeBase.ValueProperty, animation);
        }