Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public override void SetupBindings()
 {
     try
     {
         _bindings.Add(this.SetBinding(() => Vm.SearchLocation, () => LocationText.Text, BindingMode.TwoWay));
         GetWeatherButton.SetCommand(Vm.ToWeatherCommand);
     }
     catch (Exception ex)
     {
     }
 }