public override void SetupBindings() { SetContentView(Resource.Layout.Main); GetWeatherButton.SetCommand(Vm.ToWeatherCommand); //save the binding to avoid garbage collection _bindings.Add(this.SetBinding( () => Vm.SearchLocation, () => LocationEditText.Text, BindingMode.TwoWay)); }
public override void SetupBindings() { try { _bindings.Add(this.SetBinding(() => Vm.SearchLocation, () => LocationText.Text, BindingMode.TwoWay)); GetWeatherButton.SetCommand(Vm.ToWeatherCommand); } catch (Exception ex) { } }