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