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 { /// /// TransporterGantryTeachControl.xaml 的交互逻辑 /// public partial class TransporterGantryTeachControl : UserControl { #region 属性 public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register("ModuleName", typeof(string), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 模块名称 /// public string ModuleName { get { return (string)this.GetValue(ModuleNameProperty); } set { this.SetValue(ModuleNameProperty, value); } } public static readonly DependencyProperty SavedPositionProperty = DependencyProperty.Register("SavedPosition", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 当前位置 /// public double SavedPosition { get { return (double)this.GetValue(SavedPositionProperty); } set { SetValue(SavedPositionProperty, value); } } public static readonly DependencyProperty CurrentPositionProperty = DependencyProperty.Register("CurrentPosition", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 当前位置 /// public double CurrentPosition { get { return (double)this.GetValue(CurrentPositionProperty); } set { SetValue(CurrentPositionProperty, value); } } public static readonly DependencyProperty CurrentStationProperty = DependencyProperty.Register("CurrentStation", typeof(string), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 当前工位 /// public string CurrentStation { get { return (string)this.GetValue(CurrentStationProperty); } set { this.SetValue(CurrentStationProperty, value); } } public static readonly DependencyProperty DegValueProperty = DependencyProperty.Register( "DegValue", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 调整数值 /// public double DegValue { get { return (double)this.GetValue(DegValueProperty); } set { this.SetValue(DegValueProperty, value); } } public static readonly DependencyProperty IncrementValueProperty = DependencyProperty.Register( "IncrementValue", typeof(double), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(0.00, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// 步进数值 /// public double IncrementValue { get { return (double)this.GetValue(IncrementValueProperty); } set { this.SetValue(IncrementValueProperty, value); } } public static readonly DependencyProperty MovingProperty = DependencyProperty.Register( "Moving", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Moving /// public bool Moving { get { return (bool)this.GetValue(MovingProperty); } set { this.SetValue(MovingProperty, value); } } public static readonly DependencyProperty IsSwitchOnProperty = DependencyProperty.Register( "IsSwitchOn", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// IsSwitch /// public bool IsSwitchOn { get { return (bool)this.GetValue(IsSwitchOnProperty); } set { this.SetValue(IsSwitchOnProperty, value); } } public static readonly DependencyProperty HomedProperty = DependencyProperty.Register( "Homed", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// Homed /// public bool Homed { get { return (bool)this.GetValue(HomedProperty); } set { this.SetValue(HomedProperty, value); } } public static readonly DependencyProperty TorqueLimitedProperty = DependencyProperty.Register( "TorqueLimited", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// TorqueLimited /// public bool TorqueLimited { get { return (bool)this.GetValue(TorqueLimitedProperty); } set { this.SetValue(TorqueLimitedProperty, value); } } public static readonly DependencyProperty PositiveHwSwitchedProperty = DependencyProperty.Register( "PositiveHwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// PositiveHwSwitched /// public bool PositiveHwSwitched { get { return (bool)this.GetValue(PositiveHwSwitchedProperty); } set { this.SetValue(PositiveHwSwitchedProperty, value); } } public static readonly DependencyProperty NegativeHwSwitchedProperty = DependencyProperty.Register( "NegativeHwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// NegativeHwSwitched /// public bool NegativeHwSwitched { get { return (bool)this.GetValue(NegativeHwSwitchedProperty); } set { this.SetValue(NegativeHwSwitchedProperty, value); } } public static readonly DependencyProperty PositiveSwSwitchedProperty = DependencyProperty.Register( "PositiveSwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// PositiveSwSwitched /// public bool PositiveSwSwitched { get { return (bool)this.GetValue(PositiveSwSwitchedProperty); } set { this.SetValue(PositiveSwSwitchedProperty, value); } } public static readonly DependencyProperty NegativeSwSwitchedProperty = DependencyProperty.Register( "NegativeSwSwitched", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// NegativeSwSwitched /// public bool NegativeSwSwitched { get { return (bool)this.GetValue(NegativeSwSwitchedProperty); } set { this.SetValue(NegativeSwSwitchedProperty, value); } } public static readonly DependencyProperty ReadyToLock1Property = DependencyProperty.Register( "ReadyToLock1", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// ReadyToLock1 /// public bool ReadyToLock1 { get { return (bool)this.GetValue(ReadyToLock1Property); } set { this.SetValue(ReadyToLock1Property, value); } } public static readonly DependencyProperty ReadyToLock2Property = DependencyProperty.Register( "ReadyToLock2", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// ReadyToLock2 /// public bool ReadyToLock2 { get { return (bool)this.GetValue(ReadyToLock2Property); } set { this.SetValue(ReadyToLock2Property, value); } } public static readonly DependencyProperty WaferPresent1Property = DependencyProperty.Register( "WaferPresent1", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// WaferPresent1 /// public bool WaferPresent1 { get { return (bool)this.GetValue(WaferPresent1Property); } set { this.SetValue(WaferPresent1Property, value); } } public static readonly DependencyProperty WaferPresent2Property = DependencyProperty.Register( "WaferPresent2", typeof(bool), typeof(TransporterGantryTeachControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender)); /// /// WaferPresent2 /// public bool WaferPresent2 { get { return (bool)this.GetValue(WaferPresent2Property); } set { this.SetValue(WaferPresent2Property, value); } } #endregion public TransporterGantryTeachControl() { InitializeComponent(); } } }