Skip to content

Instantly share code, notes, and snippets.

@davidtavarez
Created August 12, 2015 15:12
Show Gist options
  • Save davidtavarez/b44d0f9c7c962f189356 to your computer and use it in GitHub Desktop.
Save davidtavarez/b44d0f9c7c962f189356 to your computer and use it in GitHub Desktop.
Acr.UserDialogs working GOOD
using System;
using Acr.UserDialogs;
using Xamarin.Forms;
namespace BugUserDialogs
{
public class App : Application
{
public App ()
{
var launchWarning = new Button () { Text = "Launch Error"};
launchWarning.Clicked += (object sender, EventArgs e) => UserDialogs.Instance.WarnToast ("Warning", "Hi, I'm a Warning :)");
MainPage = new ContentPage {
Content = new StackLayout {
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
XAlign = TextAlignment.Center,
Text = "Welcome to Xamarin Forms!"
},
launchWarning
}
}
};
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment