Android Toast for WPF

Download the Demo (.exe)

How to use

1. Add Binaries

2. Add the reference


    <Window x:Class=”ToastDemo.MainWindow”
        xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
        xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
        xmlns:d=”http://schemas.microsoft.com/expression/blend/2008”
        xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006”
        xmlns:local=”clr-namespace:ToastDemo”

        //IMPORTANT LINE!
        xmlns:toast="clr-namespace:Toast;assembly=Toast"

        mc:Ignorable="d"
        Title="Toast Demo" Height="350" Width="525">
    

        using Toast;
    

3. Add Toast to XAML or in Code


        <toast:Toast x:Name="myToast" Message="Hello World!" Duration="0:0:0:5" />
    

        Toast.Toast myToast = new Toast.Toast();
        myToast.DurationToast = Toast.Toast.ToastDuration.Long;
        myToast.Message = “Hello World!”;
        someControl.Children.Add(myToast);
        someOtherControl.Content = myToast;
    

4. Set desired Parameters:

5. Show Toast:

6. (Optional) Hide Toast:

Screenshot

Thanks for using Toast!