FoupListControl2.xaml.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System.Collections.Generic;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using System.Windows.Input;
  5. using Aitex.Sorter.UI.Controls;
  6. namespace EfemUI.Controls
  7. {
  8. /// <summary>
  9. /// FoupControl.xaml 的交互逻辑
  10. /// </summary>
  11. public partial class FoupListControl2 : UserControl
  12. {
  13. public FoupListControl2()
  14. {
  15. InitializeComponent();
  16. root.DataContext = this;
  17. }
  18. public IEnumerable<FoupListItem> FoupList
  19. {
  20. get { return (IEnumerable<FoupListItem>)GetValue(FoupListProperty); }
  21. set { SetValue(FoupListProperty, value); }
  22. }
  23. // Using a DependencyProperty as the backing store for FoupList. This enables animation, styling, binding, etc...
  24. public static readonly DependencyProperty FoupListProperty =
  25. DependencyProperty.Register("FoupList", typeof(IEnumerable<FoupListItem>), typeof(FoupListControl2), null);
  26. public ICommand LoadPortCommand
  27. {
  28. get { return (ICommand)GetValue(LoadPortCommandProperty); }
  29. set { SetValue(LoadPortCommandProperty, value); }
  30. }
  31. // Using a DependencyProperty as the backing store for LoadportCommand. This enables animation, styling, binding, etc...
  32. public static readonly DependencyProperty LoadPortCommandProperty =
  33. DependencyProperty.Register("LoadPortCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null));
  34. public ICommand WaferTransferCommand
  35. {
  36. get { return (ICommand)GetValue(WaferTransferCommandProperty); }
  37. set { SetValue(WaferTransferCommandProperty, value); }
  38. }
  39. // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
  40. public static readonly DependencyProperty WaferTransferCommandProperty =
  41. DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null));
  42. public ICommand WaferTransferOptionCommand
  43. {
  44. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  45. set { SetValue(WaferTransferOptionCommandProperty, value); }
  46. }
  47. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  48. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  49. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null));
  50. public ICommand MapCommand
  51. {
  52. get { return (ICommand)GetValue(MapCommandProperty); }
  53. set { SetValue(MapCommandProperty, value); }
  54. }
  55. public static readonly DependencyProperty MapCommandProperty =
  56. DependencyProperty.Register("MapCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null));
  57. public bool ShowAction
  58. {
  59. get { return (bool)GetValue(ShowActionProperty); }
  60. set { SetValue(ShowActionProperty, value); }
  61. }
  62. // Using a DependencyProperty as the backing store for ShowAction. This enables animation, styling, binding, etc...
  63. public static readonly DependencyProperty ShowActionProperty =
  64. DependencyProperty.Register("ShowAction", typeof(bool), typeof(FoupListControl2), new PropertyMetadata(true));
  65. }
  66. }