终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 line
1.1 KiB

  1. using BPA.Helper;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. namespace BPASmartClient.DosingSystem.View
  5. {
  6. /// <summary>
  7. /// ManualControlView.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class ManualControlView : UserControl
  10. {
  11. public ManualControlView()
  12. {
  13. InitializeComponent();
  14. this.Unloaded += (o, e) => { TaskManage.GetInstance.StopTask("手动气缸状态监控"); };
  15. this.SizeChanged += ManualControlView_SizeChanged;
  16. this.cy.Height = this.list1.ActualHeight + 40;
  17. this.zd.Height = this.list2.ActualHeight + 40;
  18. this.tp.Height = this.list3.ActualHeight + 40;
  19. this.onGrid.Height = this.list4.ActualHeight + 40;
  20. }
  21. private void ManualControlView_SizeChanged(object sender, SizeChangedEventArgs e)
  22. {
  23. this.cy.Height = this.list1.ActualHeight + 40;
  24. this.zd.Height = this.list2.ActualHeight + 40;
  25. this.tp.Height = this.list3.ActualHeight + 40;
  26. this.onGrid.Height = this.list4.ActualHeight + 40;
  27. }
  28. }
  29. }