相关疑难解决方法(0)

Android上不支持全局支持PushAsync,请使用NavigationPage - Xamarin.Forms

我在Xamarin.Forms.ContentPage有线到按钮点击事件中有以下方法

public class LoginPage : ContentPage
{
    private Button _loginButton = null;
    private Entry _PasswordInput = null;
    private Entry _UsernameInput = null;

    public LoginPage()
    {
        _UsernameInput = new Entry { Placeholder = "Username" };
        _PasswordInput = new Entry { Placeholder = "Password", IsPassword = true };

        _loginButton = new Button
        {
            Text = "Login",
            BorderRadius = 5
        }

        _loginButton.Clicked += LogIn;

        Content = new StackLayout 
        {
            VerticalOptions = LayoutOptions.Center,
            Children = 
            {
                 _UsernameInput, _PasswordInput, _loginButton, 
            },
            Spacing = …
Run Code Online (Sandbox Code Playgroud)

navigation xamarin.android xamarin xamarin.forms

57
推荐指数
6
解决办法
5万
查看次数