终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

ManualControlView.xaml.cs 1.4 KiB

2 anni fa
2 anni fa
2 anni fa
2 anni fa
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.DosingSystem.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) => { ThreadManage.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. }