Beispiel #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.Welcome);

            var fraStatusContent = FindViewById <FrameLayout>(Resource.Id.fraStatusContent);


            Bindings       = new BindingManager(this);
            this.viewModel = new ViewModels.Welcome();

            Bindings.Add(Resource.Id.lblUser, "Text", this.viewModel, "UserName");

            this.LayoutInflater.Inflate(Resource.Layout.Menu, fraStatusContent, true);

            var btnLogin = FindViewById <Button>(Resource.Id.btnThree);

            btnLogin.Text       = Resources.GetString(Resource.String.ButtonLogin);
            btnLogin.Visibility = ViewStates.Visible;
            btnLogin.Click     += btnLogin_Click;

            var btnRoles = FindViewById <Button>(Resource.Id.btnFour);

            btnRoles.Text       = Resources.GetString(Resource.String.ButtonRoles);
            btnRoles.Visibility = ViewStates.Visible;
            btnRoles.Click     += btnRoles_Click;
        }