KeyFrames.cs 831 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using Avalonia.Collections;
  4. namespace Avalonia.Animation
  5. {
  6. /// <summary>
  7. /// A collection of <see cref="KeyFrame"/>s.
  8. /// </summary>
  9. public class KeyFrames : AvaloniaList<KeyFrame>
  10. {
  11. /// <summary>
  12. /// Initializes a new instance of the <see cref="KeyFrames"/> class.
  13. /// </summary>
  14. public KeyFrames()
  15. {
  16. ResetBehavior = ResetBehavior.Remove;
  17. }
  18. /// <summary>
  19. /// Initializes a new instance of the <see cref="KeyFrames"/> class.
  20. /// </summary>
  21. /// <param name="items">The initial items in the collection.</param>
  22. public KeyFrames(IEnumerable<KeyFrame> items)
  23. : base(items)
  24. {
  25. ResetBehavior = ResetBehavior.Remove;
  26. }
  27. }
  28. }