FOUPFrontView.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using MECF.Framework.UI.Client.ClientBase;
  5. namespace MECF.Framework.UI.Client.Ctrlib.UnitControls
  6. {
  7. /// <summary>
  8. /// Interaction logic for FOUPFrontView.xaml
  9. /// </summary>
  10. public partial class FOUPFrontView : UserControl
  11. {
  12. public FOUPFrontView()
  13. {
  14. InitializeComponent();
  15. }
  16. #region UnitData (DependencyProperty)
  17. public ModuleInfo UnitData
  18. {
  19. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  20. set { SetValue(UnitDataProperty, value); }
  21. }
  22. public static readonly DependencyProperty UnitDataProperty =
  23. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(FOUPFrontView), new UIPropertyMetadata(null));
  24. public bool ShowTitle
  25. {
  26. get { return (bool)GetValue(ShowTitleProperty); }
  27. set { SetValue(ShowTitleProperty, value); }
  28. }
  29. public static readonly DependencyProperty ShowTitleProperty =
  30. DependencyProperty.Register("ShowTitle", typeof(bool), typeof(FOUPFrontView), new UIPropertyMetadata(true));
  31. #endregion
  32. }
  33. }