终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

66 lines
2.3 KiB

  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 BPASmartClient.CustomResource.UserControls
  16. {
  17. /// <summary>
  18. /// DosingSystem.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class DosingSystem : UserControl
  21. {
  22. public DosingSystem()
  23. {
  24. InitializeComponent();
  25. }
  26. /// <summary>
  27. /// 电机主题颜色 FF00D300
  28. /// </summary>
  29. public SolidColorBrush DosingColor
  30. {
  31. get { return (SolidColorBrush)GetValue(DosingColorProperty); }
  32. set { SetValue(DosingColorProperty, value); }
  33. }
  34. public static readonly DependencyProperty DosingColorProperty =
  35. DependencyProperty.Register("DosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
  36. new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 0, 211, 0))));
  37. /// <summary>
  38. /// 电机暗颜色,FF004700
  39. /// </summary>
  40. public SolidColorBrush DarkDosingColor
  41. {
  42. get { return (SolidColorBrush)GetValue(DarkDosingColorProperty); }
  43. set { SetValue(DarkDosingColorProperty, value); }
  44. }
  45. public static readonly DependencyProperty DarkDosingColorProperty =
  46. DependencyProperty.Register("DarkDosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
  47. new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 0, 71, 0))));
  48. /// <summary>
  49. /// 电机渐变色,FF2A752A
  50. /// </summary>
  51. public SolidColorBrush GradientDosingColor
  52. {
  53. get { return (SolidColorBrush)GetValue(GradientDosingColorProperty); }
  54. set { SetValue(GradientDosingColorProperty, value); }
  55. }
  56. public static readonly DependencyProperty GradientDosingColorProperty =
  57. DependencyProperty.Register("GradientDosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
  58. new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 42, 117, 42))));
  59. }
  60. }