Transform3DPageViewModel.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using MiniMvvm;
  3. using Avalonia.Animation;
  4. namespace RenderDemo.ViewModels
  5. {
  6. public class Transform3DPageViewModel : ViewModelBase
  7. {
  8. private double _rotationX = 0;
  9. private double _rotationY = 0;
  10. private double _rotationZ = 0;
  11. private double _x = 0;
  12. private double _y = 0;
  13. private double _z = 0;
  14. private double _depth = 200;
  15. public double RotationX
  16. {
  17. get => _rotationX;
  18. set => RaiseAndSetIfChanged(ref _rotationX, value);
  19. }
  20. public double RotationY
  21. {
  22. get => _rotationY;
  23. set => RaiseAndSetIfChanged(ref _rotationY, value);
  24. }
  25. public double RotationZ
  26. {
  27. get => _rotationZ;
  28. set => RaiseAndSetIfChanged(ref _rotationZ, value);
  29. }
  30. public double Depth
  31. {
  32. get => _depth;
  33. set => RaiseAndSetIfChanged(ref _depth, value);
  34. }
  35. public double X
  36. {
  37. get => _x;
  38. set => RaiseAndSetIfChanged(ref _x, value);
  39. }
  40. public double Y
  41. {
  42. get => _y;
  43. set => RaiseAndSetIfChanged(ref _y, value);
  44. }
  45. public double Z
  46. {
  47. get => _z;
  48. set => RaiseAndSetIfChanged(ref _z, value);
  49. }
  50. }
  51. }