TimeSpanAxis.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="TimeSpanAxis.cs" company="OxyPlot">
  3. // Copyright (c) 2014 OxyPlot contributors
  4. // </copyright>
  5. // <summary>
  6. // This is a Avalonia wrapper of OxyPlot.TimeSpanAxis.
  7. // </summary>
  8. // --------------------------------------------------------------------------------------------------------------------
  9. namespace OxyPlot.Avalonia
  10. {
  11. /// <summary>
  12. /// This is a Avalonia wrapper of OxyPlot.TimeSpanAxis.
  13. /// </summary>
  14. public class TimeSpanAxis : Axis
  15. {
  16. /// <summary>
  17. /// Initializes a new instance of the <see cref = "TimeSpanAxis" /> class.
  18. /// </summary>
  19. public TimeSpanAxis()
  20. {
  21. InternalAxis = new Axes.TimeSpanAxis();
  22. }
  23. /// <summary>
  24. /// Creates the internal axis.
  25. /// </summary>
  26. /// <returns>The internal axis.</returns>
  27. public override Axes.Axis CreateModel()
  28. {
  29. SynchronizeProperties();
  30. return InternalAxis;
  31. }
  32. /// <summary>
  33. /// The synchronize properties.
  34. /// </summary>
  35. protected override void SynchronizeProperties()
  36. {
  37. base.SynchronizeProperties();
  38. // var a = (Axes.TimeSpanAxis)InternalAxis;
  39. // Currently no values to synchronize
  40. }
  41. }
  42. }