123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- 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
- {
- /// <summary>
- /// PowerSupplierStepControl.xaml 的交互逻辑
- /// </summary>
- public partial class PowerSupplierStepControl : UserControl
- {
- #region 属性
- public static readonly DependencyProperty CurrentProperty = DependencyProperty.Register("Current", typeof(double), typeof(PowerSupplierStepControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 电流
- /// </summary>
- public double Current
- {
- get
- {
- return (double)this.GetValue(CurrentProperty);
- }
- set
- {
- this.SetValue(CurrentProperty, value);
- }
- }
- public static readonly DependencyProperty HourProperty = DependencyProperty.Register("Hour", typeof(double), typeof(PowerSupplierStepControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 小时
- /// </summary>
- public double Hour
- {
- get
- {
- return (double)this.GetValue(HourProperty);
- }
- set
- {
- this.SetValue(HourProperty, value);
- }
- }
- public static readonly DependencyProperty MinuteProperty = DependencyProperty.Register("Minute", typeof(double), typeof(PowerSupplierStepControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 分钟
- /// </summary>
- public double Minute
- {
- get
- {
- return (double)this.GetValue(MinuteProperty);
- }
- set
- {
- this.SetValue(MinuteProperty, value);
- }
- }
- public static readonly DependencyProperty SecondProperty = DependencyProperty.Register("Second", typeof(double), typeof(PowerSupplierStepControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- /// 秒
- /// </summary>
- public double Second
- {
- get
- {
- return (double)this.GetValue(SecondProperty);
- }
- set
- {
- this.SetValue(SecondProperty, value);
- }
- }
- public static readonly DependencyProperty MicroSecondProperty = DependencyProperty.Register("MicroSecond", typeof(double), typeof(PowerSupplierStepControl),
- new FrameworkPropertyMetadata((double)0, FrameworkPropertyMetadataOptions.AffectsRender));
- /// <summary>
- ///毫秒
- /// </summary>
- public double MicroSecond
- {
- get
- {
- return (double)this.GetValue(MicroSecondProperty);
- }
- set
- {
- this.SetValue(MicroSecondProperty, value);
- }
- }
- #endregion
- public PowerSupplierStepControl()
- {
- InitializeComponent();
- }
- }
- }
|