Exemple #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var source = new SettingsViewSource(TableView, ViewModel.SettingsList);

            TableView.Source = source;

            // Load data
            TableView.ReloadData();
        }
Exemple #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var source = new SettingsViewSource(TableView);

            TableView.Source = source;

            var set = this.CreateBindingSet <SettingsScreen, SettingsViewModel>();

            set.Bind(source).To(vm => vm.SettingsList);
            set.Apply();

            // Load data
            TableView.ReloadData();
        }