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 CyberX8_Themes.UserControls { /// /// CellStatusControl.xaml 的交互逻辑 /// public partial class CellStatusControl : UserControl { public CellStatusControl() { InitializeComponent(); } #region 属性 public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register( "ModuleName", typeof(string), typeof(CellStatusControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 模块名称 /// public string ModuleName { get { return (string)this.GetValue(ModuleNameProperty); } set { this.SetValue(ModuleNameProperty, value); } } public static readonly DependencyProperty AnodeAFlowProperty = DependencyProperty.Register( "AnodeAFlow", typeof(double), typeof(CellStatusControl), new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Anode A Flow /// public double AnodeAFlow { get { return (double)this.GetValue(AnodeAFlowProperty); } set { this.SetValue(AnodeAFlowProperty, value); } } public static readonly DependencyProperty AnodeAStatusProperty = DependencyProperty.Register( "AnodeAStatus", typeof(string), typeof(CellStatusControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Anode A Status /// public string AnodeAStatus { get { return (string)this.GetValue(AnodeAStatusProperty); } set { this.SetValue(AnodeAStatusProperty, value); } } public static readonly DependencyProperty AnodeBFlowProperty = DependencyProperty.Register( "AnodeBFlow", typeof(double), typeof(CellStatusControl), new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Anode B Flow /// public double AnodeBFlow { get { return (double)this.GetValue(AnodeBFlowProperty); } set { this.SetValue(AnodeBFlowProperty, value); } } public static readonly DependencyProperty AnodeBStatusProperty = DependencyProperty.Register( "AnodeBStatus", typeof(string), typeof(CellStatusControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Anode B Status /// public string AnodeBStatus { get { return (string)this.GetValue(AnodeBStatusProperty); } set { this.SetValue(AnodeBStatusProperty, value); } } public static readonly DependencyProperty CellFlowProperty = DependencyProperty.Register( "CellFlow", typeof(double), typeof(CellStatusControl), new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Cell Flow /// public double CellFlow { get { return (double)this.GetValue(CellFlowProperty); } set { this.SetValue(CellFlowProperty, value); } } #endregion } }