Пример #1
0
 public override void OnActivityCreated(Bundle savedInstanceState)
 {
     base.OnActivityCreated(savedInstanceState);
     bindings.Add(this.SetBinding(() => Vm.IsViralEnabled, () => ShowViralSwitch.Checked, BindingMode.TwoWay));
     bindings.Add(this.SetBinding(() => Vm.IsMatureEnabled, () => ShowMatureSwitch.Checked, BindingMode.TwoWay));
     ShowViralSwitch.CheckedChange += (sender, e) =>
     {
         Vm.ChangeViralEnabled();
     };
     ShowMatureSwitch.CheckedChange += (sender, e) =>
     {
         Vm.ChangeMatureEnabled();
     };
 }