Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Issue after upgrading to 1.3.0

$
0
0

I am now getting this error on the first page that tries to load. I am totally stuck here, anyone know what else I need to change? this is after changing from the deprecated GetMainPage.

"Member Xamarin.Forms.Binding..ctor not found."

App.cs

namespace VisionPortalUI
{
    public class App : Application
    {
        public App()
        {

MainActivity.cs

namespace VisionPortalUI.Droid
{
    [Activity(Label = "VisionPortalUI", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class MainActivity : Xamarin.Forms.Labs.Droid.XFormsApplicationDroid
    {
        protected override void OnCreate(Bundle bundle)
        {

            base.OnCreate(bundle);
            Xamarin.Forms.Forms.Init(this, bundle);
            if (!Resolver.IsSet)
            {
                this.SetIoc();
            }
            else
            {
                var app = Resolver.Resolve<IXFormsApp>() as IXFormsApp<XFormsApplicationDroid>;
                app.AppContext = this;
            }

            var tmp = System.Environment.UserName;

            try
            {
                LoadApplication(new App()); 
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex); 
                throw;
            }

        }

Login.xaml.cs

namespace VisionPortalUI.Views
{
    public partial class Login : Xamarin.Forms.Labs.Mvvm.BaseView
    {
        public Login()
        {
            InitializeComponent();

Viewing all articles
Browse latest Browse all 58056

Trending Articles