using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Aitex.Sorter.UI.Controls; namespace EfemUI.Controls { /// /// FoupControl.xaml 的交互逻辑 /// public partial class FoupListControl2 : UserControl { public FoupListControl2() { InitializeComponent(); root.DataContext = this; } public IEnumerable FoupList { get { return (IEnumerable)GetValue(FoupListProperty); } set { SetValue(FoupListProperty, value); } } // Using a DependencyProperty as the backing store for FoupList. This enables animation, styling, binding, etc... public static readonly DependencyProperty FoupListProperty = DependencyProperty.Register("FoupList", typeof(IEnumerable), typeof(FoupListControl2), null); public ICommand LoadPortCommand { get { return (ICommand)GetValue(LoadPortCommandProperty); } set { SetValue(LoadPortCommandProperty, value); } } // Using a DependencyProperty as the backing store for LoadportCommand. This enables animation, styling, binding, etc... public static readonly DependencyProperty LoadPortCommandProperty = DependencyProperty.Register("LoadPortCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null)); public ICommand WaferTransferCommand { get { return (ICommand)GetValue(WaferTransferCommandProperty); } set { SetValue(WaferTransferCommandProperty, value); } } // Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc... public static readonly DependencyProperty WaferTransferCommandProperty = DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null)); public ICommand WaferTransferOptionCommand { get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); } set { SetValue(WaferTransferOptionCommandProperty, value); } } // Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc... public static readonly DependencyProperty WaferTransferOptionCommandProperty = DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null)); public ICommand MapCommand { get { return (ICommand)GetValue(MapCommandProperty); } set { SetValue(MapCommandProperty, value); } } public static readonly DependencyProperty MapCommandProperty = DependencyProperty.Register("MapCommand", typeof(ICommand), typeof(FoupListControl2), new PropertyMetadata(null)); public bool ShowAction { get { return (bool)GetValue(ShowActionProperty); } set { SetValue(ShowActionProperty, value); } } // Using a DependencyProperty as the backing store for ShowAction. This enables animation, styling, binding, etc... public static readonly DependencyProperty ShowActionProperty = DependencyProperty.Register("ShowAction", typeof(bool), typeof(FoupListControl2), new PropertyMetadata(true)); } }