MainWindowViewModel.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using ReactiveUI;
  7. namespace Direct3DInteropSample
  8. {
  9. public class MainWindowViewModel : ReactiveObject
  10. {
  11. private double _rotationX;
  12. public double RotationX
  13. {
  14. get { return _rotationX; }
  15. set { this.RaiseAndSetIfChanged(ref _rotationX, value); }
  16. }
  17. private double _rotationY = 1;
  18. public double RotationY
  19. {
  20. get { return _rotationY; }
  21. set { this.RaiseAndSetIfChanged(ref _rotationY, value); }
  22. }
  23. private double _rotationZ = 2;
  24. public double RotationZ
  25. {
  26. get { return _rotationZ; }
  27. set { this.RaiseAndSetIfChanged(ref _rotationZ, value); }
  28. }
  29. private double _zoom = 1;
  30. public double Zoom
  31. {
  32. get { return _zoom; }
  33. set { this.RaiseAndSetIfChanged(ref _zoom, value); }
  34. }
  35. }
  36. }