Wednesday, 9 January 2019

Toast PopUp For Xamarin.Forms

In this blog, we will learn how to display a Toast PopUp in Xamarin.Forms Project, such as in Android applications, with minimum code and without permissions.
Prerequisites

  • Visual Studio 2017 Xamarin
Step 1

Create a new cross-platform project with .NET Standard project.



Step 2
Install "Plugin.Toast" plugin version 2.0.0 from NuGet Packages in your solution.


Step 3
In the MainPage.xaml.cs constructor, add the line of code below.

  1. CrossToastPopUp.Current.ShowToastMessage("Message");  
Add a message as you like.
Step 4

Run the application.


1 comment:

All About .NET MAUI

  What’s .NET MAUI? .NET MAUI (.NET Multi-platform App UI) is a framework for building modern, multi-platform, natively compiled iOS, Androi...

Ads2