/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }