Ejemplo n.º 1
0
        protected override void OnPrepareBindings(View view)
        {
            var button = view.FindViewById <Button>(Resource.Id.login_button);
            var email  = view.FindViewById <EditText>(Resource.Id.login_email);
            var pwd    = view.FindViewById <EditText>(Resource.Id.login_password);

            button.SetBackgroundDrawable(AppResources.GetDrawable(Resource.Drawable.login_btn_selector));
            button.Click += (s, a) =>
            {
                ViewModel.Email    = email.Text;
                ViewModel.Password = pwd.Text;
                ViewModel.LoginCommand.Execute(null);
            };
        }