FoupListControlPro.xaml.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. 
  2. using Aitex.Core.Common;
  3. using Aitex.Sorter.Common;
  4. using Aitex.Sorter.UI.Controls;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Collections.ObjectModel;
  8. using System.ComponentModel;
  9. using System.Diagnostics;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Windows;
  13. using System.Windows.Controls;
  14. using System.Windows.Controls.Primitives;
  15. using System.Windows.Data;
  16. using System.Windows.Documents;
  17. using System.Windows.Input;
  18. using System.Windows.Media;
  19. using System.Windows.Media.Imaging;
  20. using System.Windows.Navigation;
  21. using System.Windows.Shapes;
  22. namespace EfemUI.Controls
  23. {
  24. /// <summary>
  25. /// FoupControl.xaml 的交互逻辑
  26. /// </summary>
  27. public partial class FoupListControlPro : UserControl
  28. {
  29. public FoupListControlPro()
  30. {
  31. InitializeComponent();
  32. root.DataContext = this;
  33. }
  34. public bool IsEnableTextMenu1
  35. {
  36. get { return (bool)GetValue(IsEnableTextMenu1Property); }
  37. set { SetValue(IsEnableTextMenu1Property, value); }
  38. }
  39. // Using a DependencyProperty as the backing store for IsEnableTextMenu. This enables animation, styling, binding, etc...
  40. public static readonly DependencyProperty IsEnableTextMenu1Property =
  41. DependencyProperty.Register("IsEnableTextMenu1", typeof(bool), typeof(FoupListControlPro), new PropertyMetadata(true));
  42. public int FoupCount
  43. {
  44. get
  45. {
  46. return FoupList.Count();
  47. }
  48. }
  49. public IEnumerable<FoupListItem> FoupList
  50. {
  51. get { return (IEnumerable<FoupListItem>)GetValue(FoupListProperty); }
  52. set { SetValue(FoupListProperty, value); }
  53. }
  54. // Using a DependencyProperty as the backing store for FoupList. This enables animation, styling, binding, etc...
  55. public static readonly DependencyProperty FoupListProperty =
  56. DependencyProperty.Register("FoupList", typeof(IEnumerable<FoupListItem>), typeof(FoupListControlPro), null);
  57. public ICommand LoadPortCommand
  58. {
  59. get { return (ICommand)GetValue(LoadPortCommandProperty); }
  60. set { SetValue(LoadPortCommandProperty, value); }
  61. }
  62. // Using a DependencyProperty as the backing store for LoadportCommand. This enables animation, styling, binding, etc...
  63. public static readonly DependencyProperty LoadPortCommandProperty =
  64. DependencyProperty.Register("LoadPortCommand", typeof(ICommand), typeof(FoupListControlPro), new PropertyMetadata(null));
  65. public ICommand MapCommand
  66. {
  67. get { return (ICommand)GetValue(MapCommandProperty); }
  68. set { SetValue(MapCommandProperty, value); }
  69. }
  70. // Using a DependencyProperty as the backing store for MapCommand. This enables animation, styling, binding, etc...
  71. public static readonly DependencyProperty MapCommandProperty =
  72. DependencyProperty.Register("MapCommand", typeof(ICommand), typeof(FoupListControlPro), new PropertyMetadata(null));
  73. public ICommand WaferTransferCommand
  74. {
  75. get { return (ICommand)GetValue(WaferTransferCommandProperty); }
  76. set { SetValue(WaferTransferCommandProperty, value); }
  77. }
  78. // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
  79. public static readonly DependencyProperty WaferTransferCommandProperty =
  80. DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(FoupListControlPro), new PropertyMetadata(null));
  81. public ICommand WaferTransferOptionCommand
  82. {
  83. get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
  84. set { SetValue(WaferTransferOptionCommandProperty, value); }
  85. }
  86. // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
  87. public static readonly DependencyProperty WaferTransferOptionCommandProperty =
  88. DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(FoupListControlPro), new PropertyMetadata(null));
  89. public bool ShowMap
  90. {
  91. get { return (bool)GetValue(ShowMapProperty); }
  92. set { SetValue(ShowMapProperty, value); }
  93. }
  94. // Using a DependencyProperty as the backing store for ShowAction. This enables animation, styling, binding, etc...
  95. public static readonly DependencyProperty ShowMapProperty =
  96. DependencyProperty.Register("ShowMap", typeof(bool), typeof(FoupListControlPro), new PropertyMetadata(true));
  97. public bool ShowAction
  98. {
  99. get { return (bool)GetValue(ShowActionProperty); }
  100. set { SetValue(ShowActionProperty, value); }
  101. }
  102. public bool ShowControl
  103. {
  104. get { return (bool)GetValue(ShowControlProperty); }
  105. set
  106. {
  107. SetValue(ShowControlProperty, value);
  108. }
  109. }
  110. public static readonly DependencyProperty ShowControlProperty =
  111. DependencyProperty.Register("ShowControl", typeof(bool), typeof(FoupListControlPro), new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.None));
  112. // Using a DependencyProperty as the backing store for ShowAction. This enables animation, styling, binding, etc...
  113. public static readonly DependencyProperty ShowActionProperty =
  114. DependencyProperty.Register("ShowAction", typeof(bool), typeof(FoupListControlPro), new PropertyMetadata(true));
  115. public bool IsEnableMap
  116. {
  117. get { return (bool)GetValue(IsEnableMapProperty); }
  118. set { SetValue(IsEnableMapProperty, value); }
  119. }
  120. public static readonly DependencyProperty IsEnableMapProperty =
  121. DependencyProperty.Register("IsEnableMap", typeof(bool), typeof(FoupListControlPro), new PropertyMetadata(true));
  122. }
  123. }