Retour aux cas pratiques
XamarinFondamental

Correction d’une alerte DisplayAlert non affichée correctement

Scénario

Contexte : Une alerte doit s’afficher après une action utilisateur. Le Problème : DisplayAlert est appelé depuis un contexte non valide. Extrait logique actuelle : DisplayAlert("Info", "Succès", "OK"); Sans await. Contraintes : Appeler DisplayAlert depuis page valide. Utiliser await correctement dans méthode async. Livrable attendu : Corriger l’implémentation afin que l’alerte soit correctement affichée à l’utilisateur.

Compétences ciblées

displayalertasync-awaitbugfixxamarin.formscsharp
    Correction d’une alerte DisplayAlert non affichée correctement — mise en situation Xamarin | CodeDuel