diff --git a/InfoDetail.xaml b/InfoDetail.xaml
new file mode 100644
index 0000000..8396b79
--- /dev/null
+++ b/InfoDetail.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/InfoDetail.xaml.cs b/InfoDetail.xaml.cs
new file mode 100644
index 0000000..73e356b
--- /dev/null
+++ b/InfoDetail.xaml.cs
@@ -0,0 +1,9 @@
+namespace SunlightAggregationTerminal;
+
+public partial class InfoDetail : ContentPage
+{
+ public InfoDetail()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/InfoPage.xaml.cs b/InfoPage.xaml.cs
index 817b780..7a11375 100644
--- a/InfoPage.xaml.cs
+++ b/InfoPage.xaml.cs
@@ -88,7 +88,7 @@ public partial class InfoPage : ContentPage
WeakReferenceMessenger.Default.UnregisterAll(this);
}
- private void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
+ private async void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
{
// 将 sender 强制转换为 BindingContext 定义在 BindableObject
if (sender is Microsoft.Maui.Controls.BindableObject bindable)
@@ -97,8 +97,9 @@ public partial class InfoPage : ContentPage
if (context is InfoItem item)
{
- DisplayAlert("提示", $"你点击了工单: {item.MachineName}", "确定");
+ // DisplayAlert("提示", $"你点击了工单: {item.MachineName}", "确定");
+ await Navigation.PushAsync(new InfoDetail());
}
}
}
diff --git a/SunlightAggregationTerminal.csproj b/SunlightAggregationTerminal.csproj
index 3d315ca..0d56272 100644
--- a/SunlightAggregationTerminal.csproj
+++ b/SunlightAggregationTerminal.csproj
@@ -101,6 +101,9 @@
+
+ MSBuild:Compile
+
MSBuild:Compile