1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using System.Collections.Generic;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Input;
- using Aitex.Sorter.UI.Controls;
- namespace EfemUI.Controls
- {
- /// <summary>
- /// FoupControl.xaml 的交互逻辑
- /// </summary>
- public partial class FoupListControl2 : UserControl
- {
- public FoupListControl2()
- {
- InitializeComponent();
- root.DataContext = this;
- }
- public IEnumerable<FoupListItem> FoupList
- {
- get { return (IEnumerable<FoupListItem>)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<FoupListItem>), 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));
- }
- }
|