LoadLock.xaml.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using Aitex.Core.Common;
  2. using MECF.Framework.Common.Equipment;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace Aitex.Sorter.UI.Controls
  18. {
  19. /// <summary>
  20. /// LoadLock.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class LoadLock : UserControl
  23. {
  24. public LoadLock()
  25. {
  26. InitializeComponent();
  27. root.DataContext = this;
  28. }
  29. public WaferInfo Wafer
  30. {
  31. get { return (WaferInfo)GetValue(WaferProperty); }
  32. set { SetValue(WaferProperty, value); }
  33. }
  34. // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
  35. public static readonly DependencyProperty WaferProperty =
  36. DependencyProperty.Register("Wafer", typeof(WaferInfo), typeof(LoadLock), new PropertyMetadata(null));
  37. public ModuleName Station
  38. {
  39. get { return (ModuleName)GetValue(StationProperty); }
  40. set { SetValue(StationProperty, value); }
  41. }
  42. // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
  43. public static readonly DependencyProperty StationProperty =
  44. DependencyProperty.Register("Station", typeof(ModuleName), typeof(LoadLock), new PropertyMetadata(ModuleName.System));
  45. public ICommand WaferTransferCommand
  46. {
  47. get { return (ICommand)GetValue(WaferTransferCommandProperty); }
  48. set { SetValue(WaferTransferCommandProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty WaferTransferCommandProperty =
  52. DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(LoadLock), new PropertyMetadata(null));
  53. public ICommand WaferTransferOptionCommand
  54. {
  55. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  56. set { SetValue(WaferTransferOptionCommandProperty, value); }
  57. }
  58. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  59. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  60. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(LoadLock), new PropertyMetadata(null));
  61. public int RotateAngel
  62. {
  63. get { return (int)GetValue(RotateAngelProperty); }
  64. set { SetValue(RotateAngelProperty, value); }
  65. }
  66. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  67. public static readonly DependencyProperty RotateAngelProperty =
  68. DependencyProperty.Register("RotateAngel", typeof(int), typeof(LoadLock), new PropertyMetadata(0));
  69. }
  70. }