|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
-
- namespace BPASmartClient.CustomResource.UserControls
- {
- /// <summary>
- /// DosingSystem.xaml 的交互逻辑
- /// </summary>
- public partial class DosingSystem : UserControl
- {
- public DosingSystem()
- {
- InitializeComponent();
- }
-
- /// <summary>
- /// 电机主题颜色 FF00D300
- /// </summary>
- public SolidColorBrush DosingColor
- {
- get { return (SolidColorBrush)GetValue(DosingColorProperty); }
- set { SetValue(DosingColorProperty, value); }
- }
- public static readonly DependencyProperty DosingColorProperty =
- DependencyProperty.Register("DosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
- new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 0, 211, 0))));
-
- /// <summary>
- /// 电机暗颜色,FF004700
- /// </summary>
- public SolidColorBrush DarkDosingColor
- {
- get { return (SolidColorBrush)GetValue(DarkDosingColorProperty); }
- set { SetValue(DarkDosingColorProperty, value); }
- }
- public static readonly DependencyProperty DarkDosingColorProperty =
- DependencyProperty.Register("DarkDosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
- new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 0, 71, 0))));
-
- /// <summary>
- /// 电机渐变色,FF2A752A
- /// </summary>
- public SolidColorBrush GradientDosingColor
- {
- get { return (SolidColorBrush)GetValue(GradientDosingColorProperty); }
- set { SetValue(GradientDosingColorProperty, value); }
- }
- public static readonly DependencyProperty GradientDosingColorProperty =
- DependencyProperty.Register("GradientDosingColor", typeof(SolidColorBrush), typeof(DosingSystem),
- new PropertyMetadata(new SolidColorBrush(Color.FromArgb(255, 42, 117, 42))));
-
- }
- }
|