添加机台细节消息页面

This commit is contained in:
Administrator committed 2026-05-13 02:18:18 +08:00
commit 035aa9b24a
4 files changed
+27 -2

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SunlightAggregationTerminal.InfoDetail"
Title="InfoDetail">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>
+9
View File
@@ -0,0 +1,9 @@
namespace SunlightAggregationTerminal;
public partial class InfoDetail : ContentPage
{
public InfoDetail()
{
InitializeComponent();
}
}
+3 -2
View File
@@ -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());
}
}
}
+3
View File
@@ -101,6 +101,9 @@
</ItemGroup>
<ItemGroup>
<MauiXaml Update="InfoDetail.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="InfoPage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>