我不知道为什么 DisplayAlert 不起作用,如果我写 page.Displayalert 它也不起作用
使用系统;
使用 Xamarin.Forms;
使用 UIKit;
命名空间 test.project { 公共部分类 ViewController : UIViewController {
partial void UIButton197_TouchUpInside(UIButton sender)
{
if(textBoxName.Text == "" && textBoxpasswd.Text == "")
{
await displayAlert("Hello");
}
}
protected ViewController(IntPtr handle) : base(handle)
{
// Note: this .ctor should not contain any initialization logic.
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Perform any additional setup after loading the view, typically from a nib.
}
public override void DidReceiveMemoryWarning()
{
base.DidReceiveMemoryWarning();
// Release …Run Code Online (Sandbox Code Playgroud) xamarin ×1