LoadLockFrontView.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using OpenSEMI.ClientBase;
  6. namespace VirgoUI.Client.Models.Controls
  7. {
  8. /// <summary>
  9. /// LoadLockFrontView.xaml 的交互逻辑
  10. /// </summary>
  11. public partial class LoadLockFrontView : UserControl
  12. {
  13. public LoadLockFrontView()
  14. {
  15. InitializeComponent();
  16. }
  17. #region UnitData (DependencyProperty)
  18. public ModuleInfo UnitData
  19. {
  20. get { return (ModuleInfo)GetValue(UnitDataProperty); }
  21. set { SetValue(UnitDataProperty, value); }
  22. }
  23. public static readonly DependencyProperty UnitDataProperty =
  24. DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(LoadLockFrontView), new UIPropertyMetadata(null));
  25. public bool ShowTitle
  26. {
  27. get { return (bool)GetValue(ShowTitleProperty); }
  28. set { SetValue(ShowTitleProperty, value); }
  29. }
  30. public static readonly DependencyProperty ShowTitleProperty =
  31. DependencyProperty.Register("ShowTitle", typeof(bool), typeof(LoadLockFrontView), new UIPropertyMetadata(true));
  32. #endregion
  33. }
  34. }