using Aitex.Core.Common; using MECF.Framework.Common.Equipment; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Aitex.Sorter.UI.Controls { /// /// BufferStation.xaml 的交互逻辑 /// public partial class BufferStation : UserControl { public BufferStation() { InitializeComponent(); root.DataContext = this; } public WaferInfo[] Wafers { get { return (WaferInfo[])GetValue(WafersProperty); } set { SetValue(WafersProperty, value); } } // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc... public static readonly DependencyProperty WafersProperty = DependencyProperty.Register("Wafers", typeof(WaferInfo[]), typeof(BufferStation), new PropertyMetadata(null)); public ModuleName Station { get { return (ModuleName)GetValue(StationProperty); } set { SetValue(StationProperty, value); } } // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc... public static readonly DependencyProperty StationProperty = DependencyProperty.Register("Station", typeof(ModuleName), typeof(BufferStation), new PropertyMetadata(ModuleName.Buffer)); public int RotateAngel { get { return (int)GetValue(RotateAngelProperty); } set { SetValue(RotateAngelProperty, value); } } // Using a DependencyProperty as the backing store for RotateAngel. This enables animation, styling, binding, etc... public static readonly DependencyProperty RotateAngelProperty = DependencyProperty.Register("RotateAngel", typeof(int), typeof(BufferStation), new PropertyMetadata(0)); } }