ReservoirsInformationPanel.xaml.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. /// ReservoirsInformationPanel.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class ReservoirsInformationPanel : UserControl
  21. {
  22. public ReservoirsInformationPanel()
  23. {
  24. InitializeComponent();
  25. }
  26. #region 属性
  27. public static readonly DependencyProperty ModuleTitleProperty = DependencyProperty.Register(
  28. "ModuleTitle", typeof(string), typeof(ReservoirsInformationPanel), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  29. /// <summary>
  30. /// 标题
  31. /// </summary>
  32. public string ModuleTitle
  33. {
  34. get
  35. {
  36. return (string)this.GetValue(ModuleTitleProperty);
  37. }
  38. set
  39. {
  40. this.SetValue(ModuleTitleProperty, value);
  41. }
  42. }
  43. public static readonly DependencyProperty RecipeContentProperty = DependencyProperty.Register(
  44. "RecipeContentValue", typeof(string), typeof(ReservoirsInformationPanel), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  45. /// <summary>
  46. /// RecipeContentValue
  47. /// </summary>
  48. public string RecipeContentValue
  49. {
  50. get
  51. {
  52. return (string)this.GetValue(RecipeContentProperty);
  53. }
  54. set
  55. {
  56. this.SetValue(RecipeContentProperty, value);
  57. }
  58. }
  59. public static readonly DependencyProperty OperatingModeProperty = DependencyProperty.Register(
  60. "OperatingModeValue", typeof(string), typeof(ReservoirsInformationPanel), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  61. /// <summary>
  62. /// OperatingMode
  63. /// </summary>
  64. public string OperatingModeValue
  65. {
  66. get
  67. {
  68. return (string)this.GetValue(OperatingModeProperty);
  69. }
  70. set
  71. {
  72. this.SetValue(OperatingModeProperty, value);
  73. }
  74. }
  75. public static readonly DependencyProperty RecipeModeProperty = DependencyProperty.Register(
  76. "RecipeModeValue", typeof(string), typeof(ReservoirsInformationPanel), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  77. /// <summary>
  78. /// RecipeMode
  79. /// </summary>
  80. public string RecipeModeValue
  81. {
  82. get
  83. {
  84. return (string)this.GetValue(RecipeModeProperty);
  85. }
  86. set
  87. {
  88. this.SetValue(RecipeModeProperty, value);
  89. }
  90. }
  91. public static readonly DependencyProperty StateProperty = DependencyProperty.Register(
  92. "StateValue", typeof(string), typeof(ReservoirsInformationPanel), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  93. /// <summary>
  94. /// State
  95. /// </summary>
  96. public string StateValue
  97. {
  98. get
  99. {
  100. return (string)this.GetValue(StateProperty);
  101. }
  102. set
  103. {
  104. this.SetValue(StateProperty, value);
  105. }
  106. }
  107. #endregion
  108. }
  109. }