小编Leo*_*ner的帖子

当前上下文中不存在名称“显示警报”?

我不知道为什么 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
推荐指数
1
解决办法
1734
查看次数

标签 统计

xamarin ×1