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

            var source = new PropertyPickerTableSource(TableView, PropertyPickerCell.Key);

            TableView.Source          = source;
            TableView.AllowsSelection = !ViewModel.ViewOnlyMode;

            var set = this.CreateBindingSet <PropertyPickerViewController, PropertyPickerViewModel>();

            set.Bind(source).To(vm => vm.Properties);
            set.Bind(source).For(s => s.SelectedItemIndexList).To(vm => vm.SelectedPropertyIndexList);

            /*
             * Disable batched results.
             */
            //set.Bind(GetPropertiesButtonItem).To(vm => vm.GetPropertiesCommand);
            //set.Bind(GetMorePropertiesButtonItem).To(vm => vm.GetMorePropertiesCommand);
            PropertyToolBar.Hidden = true;

            set.Apply();

            TableView.ReloadData();
        }
		public override void ViewDidLoad()
		{            
			base.ViewDidLoad();

			var source = new PropertyPickerTableSource (TableView, PropertyPickerCell.Key);
					
			TableView.Source = source;
			TableView.AllowsSelection = !ViewModel.ViewOnlyMode;
							
			var set = this.CreateBindingSet<PropertyPickerViewController, PropertyPickerViewModel>();
			set.Bind(source).To(vm => vm.Properties);
			set.Bind(source).For(s => s.SelectedItemIndexList).To(vm => vm.SelectedPropertyIndexList);
            
            /* 
             * Disable batched results. 
             */
            //set.Bind(GetPropertiesButtonItem).To(vm => vm.GetPropertiesCommand);
            //set.Bind(GetMorePropertiesButtonItem).To(vm => vm.GetMorePropertiesCommand);
            PropertyToolBar.Hidden = true;
			
			set.Apply();
           
		    TableView.ReloadData();
		}