Beispiel #1
0
        /// <summary>
        /// The value of the Text property has changed, deal with it.
        /// </summary>
        /// <param name="dependancy">The dependancy.</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void TextPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            MatrixLedMarquee instance = dependancy as MatrixLedMarquee;

            if (instance != null && instance.Isloaded)
            {
                instance.UpdateText();
            }
        }
Beispiel #2
0
        /// <summary>
        /// The value of the TimerDuration property has changed, deal with it.
        /// </summary>
        /// <param name="dependancy">The dependancy.</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void TimerDurationPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            MatrixLedMarquee instance = dependancy as MatrixLedMarquee;

            if (instance != null)
            {
                instance.timer.Interval = instance.TimerDuration.TimeSpan;
            }
        }
Beispiel #3
0
        /// <summary>
        /// The value of the LedOnColor or LedOffColor property has changed, deal with it.
        /// </summary>
        /// <param name="dependancy">The dependancy.</param>
        /// <param name="args">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void ColorPropertyChanged(DependencyObject dependancy, DependencyPropertyChangedEventArgs args)
        {
            MatrixLedMarquee instance = dependancy as MatrixLedMarquee;

            if (instance != null)
            {
                if (instance.LedOnColor != null && instance.Isloaded)
                {
                    instance.UpdateLedsFromState();
                }
            }
        }