State.cs 502 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Windows;
  2. namespace OpenSEMI.ClientBase.Handlers
  3. {
  4. public class State : DependencyObject
  5. {
  6. public static DependencyProperty DisplayValueProperty = DependencyProperty.Register("DisplayValue", typeof(string), typeof(State));
  7. public string Key
  8. {
  9. get;
  10. set;
  11. }
  12. public string Name
  13. {
  14. get;
  15. set;
  16. }
  17. public string DisplayValue
  18. {
  19. get
  20. {
  21. return (string)GetValue(DisplayValueProperty);
  22. }
  23. set
  24. {
  25. SetValue(DisplayValueProperty, value);
  26. }
  27. }
  28. }
  29. }