AnolyteGroove.xaml.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace CyberX8_Themes.UserControls
  16. {
  17. /// <summary>
  18. /// AnolyteGroove.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class AnolyteGroove : UserControl
  21. {
  22. public AnolyteGroove()
  23. {
  24. InitializeComponent();
  25. }
  26. public static readonly DependencyProperty IsShowANLevelRawProperty = DependencyProperty.Register(
  27. "IsShowANLevelRaw", typeof(bool), typeof(AnolyteGroove));
  28. public bool IsShowANLevelRaw
  29. {
  30. get
  31. {
  32. return (bool)this.GetValue(IsShowANLevelRawProperty);
  33. }
  34. set
  35. {
  36. this.SetValue(IsShowANLevelRawProperty, value);
  37. }
  38. }
  39. public static readonly DependencyProperty ANLevelRawProperty = DependencyProperty.Register(
  40. "ANLevelRaw", typeof(double), typeof(AnolyteGroove));
  41. public double ANLevelRaw
  42. {
  43. get
  44. {
  45. return (double)this.GetValue(ANLevelRawProperty);
  46. }
  47. set
  48. {
  49. this.SetValue(ANLevelRawProperty, value);
  50. }
  51. }
  52. public static readonly DependencyProperty ANLevelProperty = DependencyProperty.Register(
  53. "ANLevel", typeof(double), typeof(AnolyteGroove));
  54. public double ANLevel
  55. {
  56. get
  57. {
  58. return (double)this.GetValue(ANLevelProperty);
  59. }
  60. set
  61. {
  62. this.SetValue(ANLevelProperty, value);
  63. }
  64. }
  65. public static readonly DependencyProperty IsHighLevelProperty = DependencyProperty.Register(
  66. "IsHighLevel", typeof(bool), typeof(AnolyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  67. /// <summary>
  68. /// IsHighLevel
  69. /// </summary>
  70. public bool IsHighLevel
  71. {
  72. get
  73. {
  74. return (bool)this.GetValue(IsHighLevelProperty);
  75. }
  76. set
  77. {
  78. this.SetValue(IsHighLevelProperty, value);
  79. }
  80. }
  81. public static readonly DependencyProperty IsLowLevelProperty = DependencyProperty.Register(
  82. "IsLowLevel", typeof(bool), typeof(AnolyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  83. /// <summary>
  84. /// IsLowLevel
  85. /// </summary>
  86. public bool IsLowLevel
  87. {
  88. get
  89. {
  90. return (bool)this.GetValue(IsLowLevelProperty);
  91. }
  92. set
  93. {
  94. this.SetValue(IsLowLevelProperty, value);
  95. }
  96. }
  97. public static readonly DependencyProperty IsErrorProerty = DependencyProperty.Register(
  98. "IsError", typeof(bool), typeof(AnolyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  99. /// <summary>
  100. /// 工艺腔体是否error
  101. /// </summary>
  102. public bool IsError
  103. {
  104. get
  105. {
  106. return (bool)this.GetValue(IsErrorProerty);
  107. }
  108. set
  109. {
  110. this.SetValue(IsErrorProerty, value);
  111. }
  112. }
  113. }
  114. }