添加机台细节消息页面
This commit is contained in:
commit
035aa9b24a
4 files changed
+27
-2
No files matched your search
+3
-2
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user