BufferStation.xaml.cs 2.0 KB

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