Forum Xamarin.Forms

Is there any way to show a in app notification banner

Edd77Edd77 Member ✭✭

I would like to show a small notification like this:

The Alertify plugin does it for javascript
alertifyjs.com/notifier/position.html
Maybe we could make a github repository to add this functionality

Best Answer

  • Edd77Edd77 Member ✭✭
    Accepted Answer

    I solved it by using Toast of AcrUserDialogs
    UserDialogs.Instance.Toast(new ToastConfig($"Cambio: {Venta.Cambio:C2}")
    .SetDuration(TimeSpan.FromSeconds(30))
    .SetPosition(ToastPosition.Top)
    .SetBackgroundColor(Color.White)
    .SetMessageTextColor(Color.Black)
    .SetAction(x => x.SetText("Ok")
    ));

Answers

  • Edd77Edd77 Member ✭✭
    Accepted Answer

    I solved it by using Toast of AcrUserDialogs
    UserDialogs.Instance.Toast(new ToastConfig($"Cambio: {Venta.Cambio:C2}")
    .SetDuration(TimeSpan.FromSeconds(30))
    .SetPosition(ToastPosition.Top)
    .SetBackgroundColor(Color.White)
    .SetMessageTextColor(Color.Black)
    .SetAction(x => x.SetText("Ok")
    ));

Sign In or Register to comment.