| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 | using OpenSEMI.Ctrlib.Types;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 OpenSEMI.Ctrlib.Controls{    public class WaferSmall : Control    {        static WaferSmall()        {            DefaultStyleKeyProperty.OverrideMetadata(typeof(WaferSmall), new FrameworkPropertyMetadata(typeof(WaferSmall)));        }        #region ViewType (DependencyProperty)Front/Top        public string ViewType        {            get { return (string)GetValue(ViewTypeProperty); }            set { SetValue(ViewTypeProperty, value); }        }        public static readonly DependencyProperty ViewTypeProperty =            DependencyProperty.Register("ViewType", typeof(string), typeof(WaferSmall),           new UIPropertyMetadata("Front"));        #endregion        #region int (DependencyProperty)        /// <summary>        /// refer to enum WaferStatus in CommonEnums.cs        /// </summary>        public int WaferStatus        {            get { return (int)GetValue(WaferStatusProperty); }            set { SetValue(WaferStatusProperty, value); }        }        public static readonly DependencyProperty WaferStatusProperty =            DependencyProperty.Register("WaferStatus", typeof(int), typeof(WaferSmall),           new UIPropertyMetadata(0));        #endregion        #region SlotID (DependencyProperty)        public int SlotID        {            get { return (int)GetValue(SlotIDProperty); }            set { SetValue(SlotIDProperty, value); }        }        public static readonly DependencyProperty SlotIDProperty =            DependencyProperty.Register("SlotID", typeof(int), typeof(WaferSmall),            new UIPropertyMetadata(0));        #endregion        #region ModuleID (DependencyProperty)        public string ModuleID        {            get { return (string)GetValue(ModuleIDProperty); }            set { SetValue(ModuleIDProperty, value); }        }        public static readonly DependencyProperty ModuleIDProperty =            DependencyProperty.Register("ModuleID", typeof(string), typeof(WaferSmall), new UIPropertyMetadata(string.Empty));        #endregion        #region WaferTooltip (DependencyProperty)        public string WaferTooltip        {            get { return (string)GetValue(WaferTooltipProperty); }            set { SetValue(WaferTooltipProperty, value); }        }        public static readonly DependencyProperty WaferTooltipProperty =            DependencyProperty.Register("WaferTooltip", typeof(string), typeof(WaferSmall), new PropertyMetadata(string.Empty));        #endregion        #region WaferTooltipExt (DependencyProperty)        public string WaferTooltipExt        {            get { return (string)GetValue(WaferTooltipExtProperty); }            set { SetValue(WaferTooltipExtProperty, value); }        }        public static readonly DependencyProperty WaferTooltipExtProperty =            DependencyProperty.Register("WaferTooltipExt", typeof(string), typeof(WaferSmall), new PropertyMetadata(string.Empty));        #endregion        #region SourceName (DependencyProperty)        public string SourceName        {            get { return (string)GetValue(SourceNameProperty); }            set { SetValue(SourceNameProperty, value); }        }        public static readonly DependencyProperty SourceNameProperty =            DependencyProperty.Register("SourceName", typeof(string), typeof(WaferSmall), new UIPropertyMetadata(string.Empty));        #endregion        #region VisiblilityDuplicated (DependencyProperty)        public Visibility DuplicatedVisibility        {            get { return (Visibility)GetValue(DuplicatedVisibilityProperty); }            set { SetValue(DuplicatedVisibilityProperty, value); }        }        public static readonly DependencyProperty DuplicatedVisibilityProperty =            DependencyProperty.Register("DuplicatedVisibility", typeof(Visibility), typeof(WaferSmall), new UIPropertyMetadata(Visibility.Collapsed));        #endregion        #region VisiblilityWafer (DependencyProperty)        public Visibility WaferVisibility        {            get { return (Visibility)GetValue(WaferVisibilityProperty); }            set { SetValue(WaferVisibilityProperty, value); }        }        public static readonly DependencyProperty WaferVisibilityProperty =            DependencyProperty.Register("WaferVisibility", typeof(Visibility), typeof(WaferSmall), new UIPropertyMetadata(Visibility.Collapsed));        #endregion    }}
 |