diff --git a/examples/csharp/GennyMaui/GennyMaui/ViewModels/LoadableModel.cs b/examples/csharp/GennyMaui/GennyMaui/ViewModels/LoadableModel.cs index b17daa846..8777092bb 100644 --- a/examples/csharp/GennyMaui/GennyMaui/ViewModels/LoadableModel.cs +++ b/examples/csharp/GennyMaui/GennyMaui/ViewModels/LoadableModel.cs @@ -6,7 +6,7 @@ using System.Text.Json; using CommunityToolkit.Mvvm.Messaging.Messages; using CommunityToolkit.Mvvm.Messaging; -using Microsoft.Maui.Controls; +using CommunityToolkit.Maui.Alerts; namespace GennyMaui.ViewModels { @@ -43,7 +43,7 @@ private async Task OpenModelAsync() } else { - await Application.Current.MainPage.DisplayAlert("Folder Open Error", result.Exception.Message, "OK"); + Toast.Make("Folder Open Error: " + result.Exception.Message); } #endif }