FOUPFrontView.xaml.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using MECF.Framework.UI.Client.ClientBase;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace FurnaceUI.Controls.Parts
  17. {
  18. /// <summary>
  19. /// FOUPFrontView.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class FOUPFrontView : UserControl
  22. {
  23. public FOUPFrontView()
  24. {
  25. InitializeComponent();
  26. }
  27. #region UnitData (DependencyProperty)
  28. public ModuleInfo UnitData
  29. {
  30. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  31. set { SetValue(UnitDataProperty, value); }
  32. }
  33. public static readonly DependencyProperty UnitDataProperty =
  34. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(FOUPFrontView), new UIPropertyMetadata(null));
  35. public bool ShowTitle
  36. {
  37. get { return (bool)GetValue(ShowTitleProperty); }
  38. set { SetValue(ShowTitleProperty, value); }
  39. }
  40. public static readonly DependencyProperty ShowTitleProperty =
  41. DependencyProperty.Register("ShowTitle", typeof(bool), typeof(FOUPFrontView), new UIPropertyMetadata(true));
  42. public string Title
  43. {
  44. get { return (string)GetValue(TitleProperty); }
  45. set { SetValue(TitleProperty, value); }
  46. }
  47. public static readonly DependencyProperty TitleProperty =
  48. DependencyProperty.Register("Title", typeof(string), typeof(FOUPFrontView), new UIPropertyMetadata(""));
  49. #endregion
  50. }
  51. }