终端一体化运控平台
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.

ManualControlView.xaml.cs 1.4 KiB

2 years ago
2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using BPA.Helper;
  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 BPASmartClient.DosingSystemSingle.View
  17. {
  18. /// <summary>
  19. /// ManualControlView.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class ManualControlView : UserControl
  22. {
  23. public ManualControlView()
  24. {
  25. InitializeComponent();
  26. this.Unloaded += (o, e) => { TaskManage.GetInstance.StopTask("手动气缸状态监控"); };
  27. this.SizeChanged += ManualControlView_SizeChanged;
  28. this.cy.Height = this.list1.ActualHeight + 40;
  29. this.zd.Height = this.list2.ActualHeight + 40;
  30. this.tp.Height = this.list3.ActualHeight + 40;
  31. this.onGrid.Height = this.list4.ActualHeight + 40;
  32. }
  33. private void ManualControlView_SizeChanged(object sender, SizeChangedEventArgs e)
  34. {
  35. this.cy.Height = this.list1.ActualHeight + 40;
  36. this.zd.Height = this.list2.ActualHeight + 40;
  37. this.tp.Height = this.list3.ActualHeight + 40;
  38. this.onGrid.Height = this.list4.ActualHeight + 40;
  39. }
  40. }
  41. }