ModuleControl.xaml.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. using Aitex.Core.Common.DeviceData;
  16. using Aitex.Core.UI.DeviceControl;
  17. namespace MECF.Framework.UI.Core.DeviceControl
  18. {
  19. /// <summary>
  20. /// ModuleControl.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class ModuleControl : UserControl
  23. {
  24. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  25. "ModuleName", typeof(string), typeof(ModuleControl),
  26. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  27. public string ModuleName
  28. {
  29. get
  30. {
  31. return (string)this.GetValue(ModuleNameProperty);
  32. }
  33. set
  34. {
  35. this.SetValue(ModuleNameProperty, value);
  36. }
  37. }
  38. public bool HasWafer
  39. {
  40. get { return (bool)GetValue(HasWaferProperty); }
  41. set { SetValue(HasWaferProperty, value); }
  42. }
  43. public static readonly DependencyProperty HasWaferProperty =
  44. DependencyProperty.Register("HasWafer", typeof(bool), typeof(ModuleControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  45. public ModuleControl()
  46. {
  47. InitializeComponent();
  48. }
  49. }
  50. }