| File: System\Windows\Forms\Rendering\Animation\AnimationManager.AnimationRendererItem.cs | Web Access |
| Project: src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj (System.Windows.Forms) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Forms.Rendering.Animation; internal partial class AnimationManager { /// <summary> /// Stores the timeline state for one animated renderer. /// </summary> private sealed class AnimationRendererItem { public AnimationRendererItem(AnimatedControlRenderer renderer, int animationDuration, AnimationCycle animationCycle) { Renderer = renderer; AnimationDuration = animationDuration; AnimationCycle = animationCycle; } public AnimatedControlRenderer Renderer { get; } public int AnimationDuration { get; set; } public int FrameCount { get; set; } public AnimationCycle AnimationCycle { get; set; } public int FrameOffset { get; set; } = 1; public TimeSpan? TargetTimestamp { get; set; } } }