Created
August 12, 2015 15:12
-
-
Save davidtavarez/b44d0f9c7c962f189356 to your computer and use it in GitHub Desktop.
Acr.UserDialogs working GOOD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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