We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Page.DisplayAlert
Shell.Current.DisplayAlert
1 parent d0206a9 commit e652b7eCopy full SHA for e652b7e
1 file changed
src/examples/ReactiveUI.Samples.Maui/LoginPage.xaml.cs
@@ -35,10 +35,10 @@ public LoginPage()
35
36
ViewModel.Login
37
.Subscribe(async success =>
38
- await DisplayAlert(
+ await (Shell.Current?.DisplayAlert(
39
success ? "Login Successful" : "Login Failed",
40
success ? "Welcome!" : "Invalid credentials.",
41
- "OK"))
+ "OK") ?? Task.CompletedTask))
42
.DisposeWith(d);
43
});
44
}
0 commit comments