Esempio n. 1
0
        /// <summary>
        /// Either start or end changed
        /// </summary>
        /// <param name="d">Object changed occured on</param>
        /// <param name="e">Event object for our change</param>
        public static void TimeRangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TimelineRuler view = d as TimelineRuler;

            if (view != null)
            {
                view.UpdateTimeRange();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Callback for dep prop change of current time on timeline
        /// </summary>
        /// <param name="d">Object changed occured on</param>
        /// <param name="e">Event object for our change</param>
        public static void CurrentTimeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TimelineRuler view = d as TimelineRuler;

            if (view != null)
            {
                view.InvalidateCurrentTimeHighlight();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Callback for dependency property of the color of our ticks
        /// </summary>
        /// <param name="d">Object changed occured on</param>
        /// <param name="e">Event object for our change</param>
        public static void TicksColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TimelineRuler view = d as TimelineRuler;

            if (view != null)
            {
                view.InvalidateTimeline();
            }
        }