DefaultAnimationAttribute.cs 648 B

12345678910111213141516171819202122
  1. using System;
  2. namespace XCharts.Runtime
  3. {
  4. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  5. public sealed class DefaultAnimationAttribute : Attribute
  6. {
  7. public readonly AnimationType type;
  8. public readonly bool enableSerieDataAddedAnimation = true;
  9. public DefaultAnimationAttribute(AnimationType handler)
  10. {
  11. this.type = handler;
  12. }
  13. public DefaultAnimationAttribute(AnimationType handler, bool enableSerieDataAddedAnimation)
  14. {
  15. this.type = handler;
  16. this.enableSerieDataAddedAnimation = enableSerieDataAddedAnimation;
  17. }
  18. }
  19. }