Guest User

Untitled

a guest
Apr 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. 0
  2. 1000
  3. 0
  4. 1000
  5. [repeat]
  6.  
  7. <metro:NumericUpDown
  8. Value="{Binding LuxVoltage, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
  9. Minimum="0"
  10. Maximum="65535"
  11. />
  12. <Slider
  13. Value="{Binding LuxVoltage, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
  14. Minimum="0"
  15. Maximum="65535"
  16. />
  17.  
  18. private ushort _luxVoltage = 0;
  19. public ushort LuxVoltage
  20. {
  21. get { return _luxVoltage; }
  22. set { SetProperty(ref _luxVoltage, value); }
  23. }
  24.  
  25. IsSnapToTickEnabled="True"
  26.  
  27. private ushort _luxVoltage = 0;
  28. public ushort LuxVoltage
  29. {
  30. get { return _luxVoltage; }
  31. set
  32. {
  33. if (_luxVoltage != value)
  34. {
  35. SetProperty(ref _luxVoltage, value);
  36. }
  37. }
  38. }
Add Comment
Please, Sign In to add comment