public MainPage() { InitializeComponent(); myViewModel vm = new myViewModel(); this.BindingContext = vm; vm.PerformShimmerAsyncTask("123"); }
public ActionResult Index(int?id) { ViewBag.id = id; var user = db.Users.First(item => item.Id == id); myViewModel viewModel = new myViewModel { AllItems = db.Items.ToList(), adminUser = user }; return(View(viewModel)); }
private void Button_Clicked(object sender, EventArgs e) { myViewModel viewModel = employees[0] as myViewModel; viewModel.isComplete = !viewModel.isComplete; }