Acr.UserDialogs.ToastConfig.SetBackgroundColor(System.Drawing.Color)

Here are the examples of the csharp api class Acr.UserDialogs.ToastConfig.SetBackgroundColor(System.Drawing.Color) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: userdialogs
Source File: UserDialogsImpl.cs
public override void ShowError(string message, int timeoutMillis)
        {
            this.Toast(new ToastConfig(message)
                .SetDuration(TimeSpan.FromMilliseconds(timeoutMillis))
                .SetBackgroundColor(Color.Red)
            );
        }

2. Example

Project: userdialogs
Source File: UserDialogsImpl.cs
public override void ShowSuccess(string message, int timeoutMillis)
        {
            this.Toast(new ToastConfig(message)
                .SetDuration(TimeSpan.FromMilliseconds(timeoutMillis))
                .SetBackgroundColor(Color.LawnGreen)
                .SetMessageTextColor(Color.Black)
            );
        }