LoadLock.xaml.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 bool IsEnableTextMenu
  30. {
  31. get { return (bool)GetValue(IsEnableTextMenuProperty); }
  32. set { SetValue(IsEnableTextMenuProperty, value); }
  33. }
  34. // Using a DependencyProperty as the backing store for IsEnableTextMenu. This enables animation, styling, binding, etc...
  35. public static readonly DependencyProperty IsEnableTextMenuProperty =
  36. DependencyProperty.Register("IsEnableTextMenu", typeof(bool), typeof(LoadLock), new PropertyMetadata(true));
  37. public WaferInfo Wafer
  38. {
  39. get { return (WaferInfo)GetValue(WaferProperty); }
  40. set { SetValue(WaferProperty, value); }
  41. }
  42. // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
  43. public static readonly DependencyProperty WaferProperty =
  44. DependencyProperty.Register("Wafer", typeof(WaferInfo), typeof(LoadLock), new PropertyMetadata(null));
  45. public ModuleName Station
  46. {
  47. get { return (ModuleName)GetValue(StationProperty); }
  48. set { SetValue(StationProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty StationProperty =
  52. DependencyProperty.Register("Station", typeof(ModuleName), typeof(LoadLock), new PropertyMetadata(ModuleName.System));
  53. public ICommand WaferTransferCommand
  54. {
  55. get { return (ICommand)GetValue(WaferTransferCommandProperty); }
  56. set { SetValue(WaferTransferCommandProperty, value); }
  57. }
  58. // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
  59. public static readonly DependencyProperty WaferTransferCommandProperty =
  60. DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(LoadLock), new PropertyMetadata(null));
  61. public ICommand WaferTransferOptionCommand
  62. {
  63. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  64. set { SetValue(WaferTransferOptionCommandProperty, value); }
  65. }
  66. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  67. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  68. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(LoadLock), new PropertyMetadata(null));
  69. public int RotateAngel
  70. {
  71. get { return (int)GetValue(RotateAngelProperty); }
  72. set { SetValue(RotateAngelProperty, value); }
  73. }
  74. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  75. public static readonly DependencyProperty RotateAngelProperty =
  76. DependencyProperty.Register("RotateAngel", typeof(int), typeof(LoadLock), new PropertyMetadata(0));
  77. }
  78. }