Xamarin.forms: Please implement Toast message for Android, iOS and Windows from Shared project

Created on 16 May 2019  Â·  6Comments  Â·  Source: xamarin/Xamarin.Forms

Summary

I need build in Toast message from Xamarin.Forms. I don't want to use 3rd party packages.

inactive proposal-open enhancement âž•

Most helpful comment

Maybe even add Action options.. so you can have a button on the toast/snackbar with an action command like this;

afbeelding

afbeelding

afbeelding

All 6 comments

Why you don't make your own implementation using the built-in Dependency Service?, its quite easy.

@Sergiojoel9877 Can you point to any resource for a guidance to implement this functionality.

@HobDev @arvindrajachourasiya There are quite some tutorials on this topic, for example:
https://www.c-sharpcorner.com/article/xamarin/

This article demonstrates how to make Toast Message or local message using Dependency Service in Xamarin.Forms applications.

It will be great to have it from Xamarin Forms like this:

<Toast
    Width=""
    Height=""
    Animation="{Fade, SlideFromTop, SlideFromBottom, Zoom}"
    DisappearAfter="{Time-In-Seconds, Otherwise will not disappear until click}"
    BackGroundColor="Yellow"
    TextColor="Black"
    CornerRadius="25"
    Position="{Top, Bottom}"
/>

that's what I can think of now before sleeping :)

Maybe even add Action options.. so you can have a button on the toast/snackbar with an action command like this;

afbeelding

afbeelding

afbeelding

This is being worked on https://github.com/xamarin/XamarinCommunityToolkit as the SnackBar control

Was this page helpful?
0 / 5 - 0 ratings