コード例 #1
0
        /// <summary>
        /// Updates the Presentation Foundation's pool of storyboard instances when the UI subsystem is updated.
        /// </summary>
        private void StoryboardInstancePool_Updating(IUltravioletSubsystem subsystem, UltravioletTime time)
        {
            if (pool == null)
            {
                return;
            }

            var upf = Ultraviolet.GetUI().GetPresentationFoundation();

            upf.PerformanceStats.BeginUpdate();

            pool.Update();

            upf.PerformanceStats.EndUpdate();
        }
コード例 #2
0
        /// <summary>
        /// Updates the active clock instances when the UI subsystem is updated.
        /// </summary>
        private void StoryboardClockPool_Updating(IUltravioletSubsystem subsystem, UltravioletTime time)
        {
            if (pool == null)
            {
                return;
            }

            var upf = Ultraviolet.GetUI().GetPresentationFoundation();

            upf.PerformanceStats.BeginUpdate();

            pool.Update(time, (value, state) =>
            {
                value.Value.Update((UltravioletTime)state);
            });

            upf.PerformanceStats.EndUpdate();
        }
コード例 #3
0
        /// <summary>
        /// Updates the active clock instances when the UI subsystem is updated.
        /// </summary>
        private void StoryboardClockPool_Updating(IUltravioletSubsystem subsystem, UltravioletTime time)
        {
            if (pool == null)
                return;

            var upf = Ultraviolet.GetUI().GetPresentationFoundation();
            upf.PerformanceStats.BeginUpdate();

            pool.Update(time, (value, state) =>
            {
                value.Value.Update((UltravioletTime)state);
            });

            upf.PerformanceStats.EndUpdate();
        }
コード例 #4
0
        /// <summary>
        /// Updates the Presentation Foundation's pool of storyboard instances when the UI subsystem is updated.
        /// </summary>
        private void StoryboardInstancePool_Updating(IUltravioletSubsystem subsystem, UltravioletTime time)
        {
            if (pool == null)
                return;

            var upf = Ultraviolet.GetUI().GetPresentationFoundation();
            upf.PerformanceStats.BeginUpdate();

            pool.Update();

            upf.PerformanceStats.EndUpdate();
        }