BurnInControl.xaml.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. /// BurnInControl.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class BurnInControl : UserControl
  21. {
  22. public BurnInControl()
  23. {
  24. InitializeComponent();
  25. }
  26. #region 属性
  27. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  28. "ModuleName", typeof(string), typeof(BurnInControl),
  29. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  30. /// <summary>
  31. /// 模块名称
  32. /// </summary>
  33. public string ModuleName
  34. {
  35. get
  36. {
  37. return (string)this.GetValue(ModuleNameProperty);
  38. }
  39. set
  40. {
  41. this.SetValue(ModuleNameProperty, value);
  42. }
  43. }
  44. public static readonly DependencyProperty RequestedProperty = DependencyProperty.Register(
  45. "Requested", typeof(bool), typeof(BurnInControl),
  46. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  47. /// <summary>
  48. /// Requested
  49. /// </summary>
  50. public bool Requested
  51. {
  52. get
  53. {
  54. return (bool)this.GetValue(RequestedProperty);
  55. }
  56. set
  57. {
  58. this.SetValue(RequestedProperty, value);
  59. }
  60. }
  61. public static readonly DependencyProperty RequiredProperty = DependencyProperty.Register(
  62. "Required", typeof(bool), typeof(BurnInControl),
  63. new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  64. /// <summary>
  65. /// Required
  66. /// </summary>
  67. public bool Required
  68. {
  69. get
  70. {
  71. return (bool)this.GetValue(RequiredProperty);
  72. }
  73. set
  74. {
  75. this.SetValue(RequiredProperty, value);
  76. }
  77. }
  78. #endregion
  79. private void Clear_Click(object sender, RoutedEventArgs e)
  80. {
  81. }
  82. private void Set_Click(object sender, RoutedEventArgs e)
  83. {
  84. }
  85. }
  86. }