void ReleaseDesignerOutlets() { if (BuGidelim != null) { BuGidelim.Dispose(); BuGidelim = null; } if (GenerositySlider != null) { GenerositySlider.Dispose(); GenerositySlider = null; } if (GoBack != null) { GoBack.Dispose(); GoBack = null; } if (SubTotalTextField != null) { SubTotalTextField.Dispose(); SubTotalTextField = null; } if (TipLabel != null) { TipLabel.Dispose(); TipLabel = null; } }
void ReleaseDesignerOutlets() { if (GenerositySlider != null) { GenerositySlider.Dispose(); GenerositySlider = null; } if (SubTotalTextField != null) { SubTotalTextField.Dispose(); SubTotalTextField = null; } if (TipLabel != null) { TipLabel.Dispose(); TipLabel = null; } if (TotalLabel != null) { TotalLabel.Dispose(); TotalLabel = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); this.CreateBinding(TipLabel).To((TipViewModel vm) => vm.Tip).Apply(); this.CreateBinding(SubTotalTextField).To((TipViewModel vm) => vm.SubTotal).Apply(); this.CreateBinding(GenerositySlider).To((TipViewModel vm) => vm.Generosity).Apply(); View.AddGestureRecognizer(new UITapGestureRecognizer(() => { SubTotalTextField.ResignFirstResponder(); })); }
public override void ViewDidLoad() { base.ViewDidLoad(); var set = this.CreateBindingSet <TipView, TipViewModel>(); set.Bind(TipLabel).To(vm => vm.Tip); set.Bind(SubTotalTextField).To(vm => vm.SubTotal); set.Bind(GenerositySlider).To(vm => vm.Generosity); set.Apply(); // this is optional. What this code does is to close the keyboard whenever you // tap on the screen, outside the bounds of the TextField View.AddGestureRecognizer(new UITapGestureRecognizer(() => { SubTotalTextField.ResignFirstResponder(); })); }
void ReleaseDesignerOutlets() { if (CommandButton != null) { CommandButton.Dispose(); CommandButton = null; } if (GenerousSlider != null) { GenerousSlider.Dispose(); GenerousSlider = null; } if (NewLabel != null) { NewLabel.Dispose(); NewLabel = null; } if (NextPageButton != null) { NextPageButton.Dispose(); NextPageButton = null; } if (SubTotalTextField != null) { SubTotalTextField.Dispose(); SubTotalTextField = null; } if (TapGesture != null) { TapGesture.Dispose(); TapGesture = null; } if (TipLabel != null) { TipLabel.Dispose(); TipLabel = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); var bindingSet = this.CreateBindingSet <TipView, TipViewModel>(); bindingSet.Bind(TipLabel).To(vm => vm.Tip); bindingSet.Bind(SubTotalTextField).To(vm => vm.SubTotal); bindingSet.Bind(GenerositySlider).To(vm => vm.Generosity); bindingSet.Bind(GenerosityTextField).To(vm => vm.Generosity); bindingSet.Apply(); // close keyboard when the screen is tapped outside // the bounds of the SubTotalTextField View.AddGestureRecognizer(new UITapGestureRecognizer(() => { SubTotalTextField.ResignFirstResponder(); })); }
void ReleaseDesignerOutlets() { if (Generosity != null) { Generosity.Dispose(); Generosity = null; } if (GenerositySlider != null) { GenerositySlider.Dispose(); GenerositySlider = null; } if (SubTotal != null) { SubTotal.Dispose(); SubTotal = null; } if (SubTotalTextField != null) { SubTotalTextField.Dispose(); SubTotalTextField = null; } if (TableViewButton != null) { TableViewButton.Dispose(); TableViewButton = null; } if (TipLabel != null) { TipLabel.Dispose(); TipLabel = null; } }
partial void TapGestureRecognized(UITapGestureRecognizer sender) { SubTotalTextField.ResignFirstResponder(); }