From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
Plugin.TsExecution/ScreenGrid.xaml.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/Plugin.TsExecution/ScreenGrid.xaml.cs b/Plugin.TsExecution/ScreenGrid.xaml.cs
new file mode 100644
index 0000000..6409d77
--- /dev/null
+++ b/Plugin.TsExecution/ScreenGrid.xaml.cs
@@ -0,0 +1,45 @@
+锘縰sing HMI.Base;
+using HMI.UI.DpUtil;
+using System.Collections.ObjectModel;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace Plugin.TsExecution
+{
+ public class ScreenGridConfig
+ {
+ public int rows { get; set; }
+ public int columns { get; set; }
+ public ObservableCollection<bool> values { get; set; }
+ }
+
+ /// <summary>
+ /// ScreenTouch.xaml 鐨勪氦浜掗�昏緫
+ /// </summary>
+ public partial class ScreenGrid : NotifyControl
+ {
+ public ScreenGrid(int rows, int columns)
+ {
+ InitializeComponent();
+
+ for (int i = 0; i < rows; i++)
+ {
+ grid.RowDefinitions.Add(new RowDefinition());
+ }
+
+ for (int i = 0; i < columns; i++)
+ {
+ grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto});
+ }
+ }
+
+ public void AddScreen(ScreenTouch screen, int row, int col)
+ {
+ grid.Children.Add(screen);
+ Grid.SetRow(screen, row);
+ Grid.SetColumn(screen, col);
+
+ GridHelper.RefreshGridSpace(grid);
+ }
+ }
+}
--
Gitblit v1.9.1