BufferStation.xaml.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. /// BufferStation.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class BufferStation : UserControl
  23. {
  24. public BufferStation()
  25. {
  26. InitializeComponent();
  27. root.DataContext = this;
  28. }
  29. public WaferInfo[] Wafers
  30. {
  31. get { return (WaferInfo[])GetValue(WafersProperty); }
  32. set { SetValue(WafersProperty, value); }
  33. }
  34. // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
  35. public static readonly DependencyProperty WafersProperty =
  36. DependencyProperty.Register("Wafers", typeof(WaferInfo[]), typeof(BufferStation), 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(BufferStation), new PropertyMetadata(ModuleName.Buffer));
  45. public int RotateAngel
  46. {
  47. get { return (int)GetValue(RotateAngelProperty); }
  48. set { SetValue(RotateAngelProperty, value); }
  49. }
  50. // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc...
  51. public static readonly DependencyProperty RotateAngelProperty =
  52. DependencyProperty.Register("RotateAngel", typeof(int), typeof(BufferStation), new PropertyMetadata(0));
  53. }
  54. }