public override void ViewDidLoad() { base.ViewDidLoad(); var bindingDescriptions = new[] { new MvxBindingDescription { TargetName = "TitleText", Source = new MvxPathSourceStepDescription { SourcePropertyPath = "fields.nom_du_cafe" } } }; var source = new MvxStandardTableViewSource( TableView, UITableViewCellStyle.Default, new NSString("SimpleBindableTableViewCell"), bindingDescriptions); source.SelectionChangedCommand = ViewModel.SelectRecord; source.ItemsSource = ViewModel.Records; this.TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var table = new UITableView(new CGRect(0, 130, 320, 300)); Add(table); var source = new MvxStandardTableViewSource(table, "TitleText ."); table.Source = source; var add = new UIButton(UIButtonType.RoundedRect); add.SetTitle("+", UIControlState.Normal); add.Frame = new CGRect(10, 100, 140, 30); Add(add); var remove = new UIButton(UIButtonType.RoundedRect); remove.SetTitle("-", UIControlState.Normal); remove.Frame = new CGRect(170, 100, 140, 30); Add(remove); var set = this.CreateBindingSet <ListView, ListViewModel>(); set.Bind(source).To(vm => vm.Items); set.Bind(add).To(vm => vm.AddCommand); set.Bind(remove).To(vm => vm.RemoveCommand); set.Apply(); }
protected override void CreateView() { _labelWelcome = new UILabel { Text = "Chinook Welcome!!", TextAlignment = UITextAlignment.Center }; Add(_labelWelcome); _labelMessage = new UILabel { Text = "App scaffolded with MvxScaffolding", TextAlignment = UITextAlignment.Center }; Add(_labelMessage); _txt = new UITextField { Placeholder = "Enter Text Here", TextAlignment = UITextAlignment.Center }; Add(_txt); _btn = new UIButton(UIButtonType.System); _btn.SetTitle("This is a Button", UIControlState.Normal); Add(_btn); _table = new UITableView(); Add(_table); _source = new MvxStandardTableViewSource(_table, "TitleText Strip(Name, 'ViewModel')"); _table.Source = _source; }
private void CreateBindings() { //useMvxStandardTableViewCell var resultTableViewSource = new MvxStandardTableViewSource(_resultTableView, UITableViewCellStyle.Value2, new NSString("ResultCell"), "TitleText Culture; DetailText Word"); _resultTableView.Source = resultTableViewSource; var synonymsTableViewSource = new MvxStandardTableViewSource(_synonymsTableView, UITableViewCellStyle.Value2, new NSString("SynonymResultCell"), "TitleText Culture; DetailText Word"); _synonymsTableView.Source = synonymsTableViewSource; var bindingSet = this.CreateBindingSet <MainViewController, MainViewModel>(); bindingSet.Bind(this).For(a => a.ShouldAnimateBusyIndicator).To(vm => vm.IsBusy).OneWay(); bindingSet.Bind(_inputTextFiled).For(f => f.Text).To(vm => vm.Input).TwoWay(); bindingSet.Bind(_inputTextFiled).For(f => f.IsValid).To(vm => vm.IsSuccessful).TwoWay(); bindingSet.Bind(_inputTextFiled).For(f => f.ReturnCommand).To(vm => vm.SearchCommand).TwoWay(); bindingSet.Bind(_inputTextFiled).For(f => f.AutoCompleteItemsSource).To(vm => vm.AutoCompleteSuggestions).TwoWay(); bindingSet.Bind(resultTableViewSource).To(vm => vm.TranslationResults).OneWay(); bindingSet.Bind(synonymsTableViewSource).To(vm => vm.Synonyms).OneWay(); bindingSet.Bind(_sourceLabel).For(f => f.Text).To(vm => vm.SourceLanguage).TwoWay(); bindingSet.Bind(_useGoogleSwitch).For(s => s.On).To(vm => vm.ShouldUseGoogle).TwoWay(); bindingSet.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText FullName;ImageUrl Picture"); TableView.Source = source; mSearchBar = new UISearchBar(); mSearchBar.Placeholder = "Enter Search Text"; mSearchBar.SetShowsCancelButton(true, true); mSearchBar.SizeToFit(); mSearchBar.AutocorrectionType = UITextAutocorrectionType.No; mSearchBar.AutocapitalizationType = UITextAutocapitalizationType.None; mSearchBar.CancelButtonClicked += SearchBarCancelButtonClicked; mSearchBar.SearchButtonClicked += (sender, e) => { PerformSearch(); }; var bindingSet = this.CreateBindingSet <FriendsViewController, FriendsViewModel>(); bindingSet.Bind(source).To(x => x.Friends); bindingSet.Bind(source).For(s => s.SelectionChangedCommand).To(vm => vm.ViewDetailsCommand); bindingSet.Bind(mSearchBar).For(x => x.Text).To(vm => vm.SearchTerm); bindingSet.Apply(); TableView.ReloadData(); TableView.TableHeaderView = mSearchBar; }
public override void ViewDidLoad() { base.ViewDidLoad(); var viewModel = this.ViewModel; var tab = new UITableView(View.Frame) { AutoresizingMask = UIViewAutoresizing.FlexibleHeight }; Add(tab); View.AddConstraints( tab.AtLeftOf(View), tab.AtTopOf(View), tab.WithSameWidth(View), tab.WithSameHeight(View)); tab.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); var source = new MvxStandardTableViewSource(tab, "TitleText Title; SelectedCommand ShowCommand"); tab.Source = source; var set = this.CreateBindingSet <HomeView, HomeViewModel>(); set.Bind(source).To(vm => vm.HomeItems); //set.Bind(source).For(s => s.SelectionChangedCommand).To(vm => vm.GotoTestCommand); set.Apply(); //var scrollView = new UIScrollView(View.Frame) //{ // ShowsHorizontalScrollIndicator = false, // AutoresizingMask = UIViewAutoresizing.FlexibleHeight //}; //var infoButton = new UIButton(); //infoButton.SetTitle("Show Info ViewModel", UIControlState.Normal); //infoButton.BackgroundColor = UIColor.Blue; //scrollView.AddSubviews(infoButton); //Add(scrollView); //View.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); //View.AddConstraints( // scrollView.AtLeftOf(View), // scrollView.AtTopOf(View), // scrollView.WithSameWidth(View), // scrollView.WithSameHeight(View)); //scrollView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); //var set = this.CreateBindingSet<HomeView, HomeViewModel>(); //set.Bind(infoButton).To("GoToInfoCommand"); //set.Apply(); //scrollView.AddConstraints( // infoButton.Below(scrollView).Plus(10), // infoButton.WithSameWidth(scrollView), // infoButton.WithSameLeft(scrollView) // ); }
public override void ViewDidLoad() { // View = new UIView(){ BackgroundColor = UIColor.White}; base.ViewDidLoad(); // ios7 layout //if (RespondsToSelector(new Selector("edgesForExtendedLayout"))) // EdgesForExtendedLayout = UIRectEdge.None; var source = new MvxStandardTableViewSource(TableView, "ItemName ItemName; "); TableView.Source = source; var set = this.CreateBindingSet <FirstView, ItemsViewModel>(); set.Bind(source).To(vm => vm.Items); set.Apply(); TableView.ReloadData(); //var label = new UILabel(new RectangleF(10, 10, 300, 40)); //Add(label); //var textField = new UITextField(new RectangleF(10, 50, 300, 40)); //Add(textField); //var set = this.CreateBindingSet<ItemsView, Core.ViewModels.ItemsViewModel>(); //set.Bind(label).To(vm => vm.TotalCount); //set.Bind(textField).To(vm => vm.TotalCount); //set.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = "Settings"; TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; _source = new MvxStandardTableViewSource( TableView, UITableViewCellStyle.Default, new NSString("SettingsOptionItem"), "TitleText Name") { DeselectAutomatically = true }; TableView.Source = _source; var bindingSet = this.CreateBindingSet <SettingsHolderView, SettingsHolderViewModel>(); bindingSet .Bind(_source) .For(v => v.ItemsSource) .To(vm => vm.Options); bindingSet .Bind(_source) .For(v => v.SelectionChangedCommand) .To(vm => vm.OptionSelectedCommand); bindingSet.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Title;ImageUrl StripUrl"); this.CreateBinding(source).To<ListViewModel>(vm => vm.Items).Apply(); this.CreateBinding(source).For(s => s.SelectionChangedCommand).To<ListViewModel>(vm => vm.ItemSelectedCommand).Apply(); TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Title;ImageUrl StripUrl"); this.CreateBinding(source).To <ListViewModel>(vm => vm.Items).Apply(); this.CreateBinding(source).For(s => s.SelectionChangedCommand).To <ListViewModel>(vm => vm.ItemSelectedCommand).Apply(); TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Name; SelectedCommand ShowCommand"); this.CreateBinding(source).To((HomeViewModel vm) => vm.Items).Apply(); TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Name; SelectedCommand ShowCommand"); this.CreateBinding(source).To((HomeViewModel vm) => vm.Items).Apply(); TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); View.BackgroundColor = UIColor.White; Title = GetTitle(ViewModel.GetType()); var source = new MvxStandardTableViewSource(TableView, UITableViewCellStyle.Subtitle, (NSString)"stdCell", "TitleText Title; DetailText 'Posted by ' + Author + ' • ' + Score + ' points • ' + CommentsCount + ' comments'"); TableView.Source = source; var refreshControl = new MvxUIRefreshControl(); var set = this.CreateBindingSet <NewsView, NewsViewModel>(); if (!ViewModel.TabPresentation) { #pragma warning disable XI0001 // Notifies you with advices on how to use Apple APIs var settingsIcon = UIImage.FromBundle("SettingsIcon"); var settingsButton = new UIBarButtonItem { Image = settingsIcon }; NavigationItem.RightBarButtonItem = settingsButton; #pragma warning restore XI0001 // Notifies you with advices on how to use Apple APIs set.Bind(settingsButton) .To(vm => vm.ShowSettingsCommand) .OneTime(); } set.Bind(source) .To(vm => vm.Stories) .OneTime(); set.Bind(source) .For(s => s.SelectionChangedCommand) .To(vm => vm.ShowStoryCommand) .OneTime(); set.Bind(refreshControl) .For(v => v.RefreshCommand) .To(vm => vm.RefreshCommand) .OneTime(); set.Bind(refreshControl) .For(v => v.IsRefreshing) .To(vm => vm.IsBusy) .OneWay(); set.Apply(); RefreshControl = refreshControl; }
public override void ViewDidLoad() { this.Request = new MvxViewModelRequest <RootViewModel>(null, null, new MvxRequestedBy()); base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, UITableViewCellStyle.Default, new NSString("DataSourceCell"), "TitleText Name"); TableView.Source = source; this.CreateBinding(source).To <RootViewModel>(vm => vm.Items).Apply(); TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); //customersTableView.TableHeaderView = new UILabel() { Text = "Customers" }; var source = new MvxStandardTableViewSource(customersTableView, UITableViewCellStyle.Subtitle, new Foundation.NSString(), "TitleText Name; DetailText Description"); customersTableView.Source = source; var set = this.CreateBindingSet <CustomersView, CustomersViewModel>(); set.Bind(source).To(vm => vm.Customers); set.Apply(); customersTableView.ReloadData(); }
protected virtual void BindOrderStatus(MvxFluentBindingDescriptionSet <HistoryOrderDetailsViewController, IHistoryOrderDetailsViewModel> set) { var dataSource = new MvxStandardTableViewSource(OrderStatusTableView, HistoryOrderStatusCell.Key); OrderStatusTableView.Source = dataSource; set.Bind(dataSource).To(vm => vm.OrderStatus); OrderStatusTableView.ReloadData(); set.Bind(this).To(vm => vm.OrderStatus.Count).For(v => v.OrderStatusTableHeight) .WithConversion(new MultiplyValueConverter(), OrderStatusTableView.RowHeight); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Strip(Name, 'ViewModel')"); TableView.Source = source; var set = this.CreateBindingSet <FirstView, Core.ViewModels.FirstViewModel>(); set.Bind(source).To(vm => vm.Tests); set.Bind(source).For(s => s.SelectionChangedCommand).To(vm => vm.GotoTestCommand); set.Apply(); }
public override void ViewDidLoad() { // View = new UIView(){ BackgroundColor = UIColor.White}; base.ViewDidLoad(); // ios7 layout //if (RespondsToSelector(new Selector("edgesForExtendedLayout"))) // EdgesForExtendedLayout = UIRectEdge.None; var s = new UIBarButtonItem() { Title = "Add item" }; NavigationItem.SetRightBarButtonItem(s, false); NavigationItem.Title = "Find Back"; var source = new MvxStandardTableViewSource(TableView, "TitleText ItemName;ImageUrl ImagePath"); TableView.Source = source; var set = this.CreateBindingSet <ItemsView, ItemsViewModel> (); set.Bind(source).To(vm => vm.Items); //set.Bind (source).For (src => src.SelectionChangedCommand).To (vm => vm.ShowDetailCommand); set.Apply(); //this.AddBinding(s, new MvxBindingDescription("",)); this.AddBindings(new Dictionary <object, string> () { { s, "Clicked AddItemCommand" }, { source, "SelectionChangedCommand ShowDetailCommand" } }); TableView.ReloadData(); //var label = new UILabel(new RectangleF(10, 10, 300, 40)); //Add(label); //var textField = new UITextField(new RectangleF(10, 50, 300, 40)); //Add(textField); //var set = this.CreateBindingSet<ItemsView, Core.ViewModels.ItemsViewModel>(); //set.Bind(label).To(vm => vm.TotalCount); //set.Bind(textField).To(vm => vm.TotalCount); //set.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); this.Title = "ACR MvvmCross Plugins"; var src = new MvxStandardTableViewSource(this.TableView, "TitleText Title"); var set = this.CreateBindingSet <HomeView, HomeViewModel>(); set.Bind(src).To(x => x.Menu); set.Bind(src).For(x => x.SelectionChangedCommand).To(x => x.View); set.Apply(); this.TableView.Source = src; this.TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Name;ImageUrl ImageUrl"); TableView.Source = source; var set = this.CreateBindingSet <FirstView, FirstViewModel>(); set.Bind(source).To(vm => vm.Kittens); set.Apply(); TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.BackBarButtonItem = new UIBarButtonItem("Back", UIBarButtonItemStyle.Plain, null); MvxStandardTableViewSource ds = new MvxStandardTableViewSource(TableView, UITableViewCellStyle.Default, new NSString("cellId"), nameof(MvxStandardTableViewCell.TitleText) + " " + nameof(Category.CategoryName), UITableViewCellAccessory.DisclosureIndicator); TableView.Source = ds; //Bindings var bindings = this.CreateBindingSet <CategoriesView, CategoriesViewModel>(); bindings.Bind(this).For(s => s.Title).To(vm => vm.PageTitle); bindings.Bind(ds).To(vm => vm.Rows); bindings.Bind(ds).For(s => s.SelectionChangedCommand).To(vm => vm.ItemSelectedCommand); bindings.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); NavigationController.NavigationBarHidden = false; var logoutButton = new UIBarButtonItem("Logout", UIBarButtonItemStyle.Bordered, null); NavigationItem.LeftBarButtonItem = logoutButton; var addUserButton = new UIBarButtonItem(UIBarButtonSystemItem.Add, (o, e) => { var controller = this.CreateViewControllerFor <AddUserViewModel> () as AddUserViewController; NavigationController.PushViewController(controller, true); }); NavigationItem.RightBarButtonItem = addUserButton; var source = new MvxStandardTableViewSource(TableView, UserListCell.Key); TableView.Source = source; this.SetTitleAndTabBarItem(ViewModel.TabTitle, ViewModel.TabImageName, ViewModel.TabSelectedImageName, ViewModel.TabBadgeValue); var set = this.CreateBindingSet <UserListViewController, UserListViewModel> (); set.Bind(source).To(vm => vm.Users); set.Bind(logoutButton).To(vm => vm.LogoutCommand); set.Bind(TabBarItem).For(v => v.Title).To(vm => vm.TabTitle); set.Bind(TabBarItem).For(v => v.BadgeValue).To(vm => vm.TabBadgeValue); //set.Bind(Title).To(vm => vm.TabTitle); //set.Bind(NavigationItem).For(v => v.Title).To(vm => vm.TabTitle); set.Apply(); source.SelectedItemChanged += (object sender, EventArgs e) => { var controller = this.CreateViewControllerFor <UserDetailViewModel> (new { jsonUser = JsonConvert.SerializeObject(source.SelectedItem as User) }) as UserDetailViewController; NavigationController.PushViewController(controller, true); //var forceLoadView = controller.View; // force load view so we get ViewDidLoad and ViewModel initialized. //controller.ViewModel.User = source.SelectedItem as User; }; // Data is fetched after TableView.ReloadData(); RegisterSubscriptions(); //ViewModel.Users.CollectionChanged += (object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) => TableView.ReloadData (); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Caption;ImageUrl ImagePath"); TableView.Source = source; var set = this.CreateBindingSet <ListView, ListViewModel>(); set.Bind(source).To(vm => vm.Items); set.Bind(source).For(s => s.SelectionChangedCommand).To(vm => vm.ShowDetailCommand); set.Apply(); TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView); var set = this.CreateBindingSet <DebugView, DebugViewModel>(); set.Bind(source) .For(v => v.ItemsSource) .To(vm => vm.DebugEntries); set.Apply(); TableView.Source = source; TableView.ReloadData(); }
private void CreateAutoCompleteTableView() { AutoCompleteTableView = new UITableView(new CGRect(0, 40, 320, 120), UITableViewStyle.Plain); AutoCompleteTableView.TableFooterView = new UIView(); AutoCompleteTableView.BackgroundColor = UIColor.White; AutoCompleteTableView.Layer.BorderWidth = 1; AutoCompleteTableView.Layer.BorderColor = UIColor.LightGray.CGColor; _autocompleteTableViewSource = new MvxStandardTableViewSource(AutoCompleteTableView, UITableViewCellStyle.Default, new NSString("AutocompleteCell"), "TitleText ."); AutoCompleteTableView.Source = _autocompleteTableViewSource; AutoCompleteTableView.Hidden = true; _autocompleteTableViewSource.SelectedItemChanged += AutocompleteTableViewSource_SelectedItemChanged; Add(AutoCompleteTableView); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Title; SelectedCommand ShowCommand"); /* * var set = this.CreateBindingSet<HomeView, HomeViewModel>(); * set.Bind(source).To(vm => vm.MenuItems); * set.Apply(); */ //simple binding syntax this.CreateBinding(source).To((HomeViewModel vm) => vm.MenuItems).Apply(); TableView.Source = source; TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView, "TitleText Result"); TableView.Source = source; var set = this.CreateBindingSet <HistoryView, HistoryViewModel>(); set.Bind(source).To(vm => vm.HistoryItems); set.Apply(); TableView.ReloadData(); //var set = this.CreateBindingSet<HistoryView, Core.ViewModels.HistoryViewModel>(); //set.Bind(label1).To(vm => vm.MyText); //set.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); View.BackgroundColor = UIColor.White; Title = "Feature toggles"; var set = this.CreateBindingSet <FeatureTogglesView, FeatureTogglesViewModel>(); var source = new MvxStandardTableViewSource(TableView, UITableViewCellStyle.Value1, (NSString)"stdCell", "TitleText Key; DetailText BoolToOnOff(Value)"); set.Bind(source).To(vm => vm.Toggles).OneTime(); set.Apply(); TableView.Source = source; TableView.AllowsSelection = false; }
public override void ViewDidLoad() { base.ViewDidLoad(); var source = new MvxStandardTableViewSource(TableView); var set = this.CreateBindingSet <MainView, MainViewModel> (); set.Bind(source).To(vm => vm.Titles); set.Bind(source).For(s => s.SelectionChangedCommand).To(vm => vm.ItemSelectedCommand); set.Apply(); TableView.Source = source; TableView.ReloadData(); Title = "Material Design Demo"; NavigationController.NavigationBar.Translucent = false; // Perform any additional setup after loading the view, typically from a nib. }
public override void ViewDidLoad() { base.ViewDidLoad(); var tableSource = new MvxStandardTableViewSource(Table, CrashTableViewCell.Key); Table.Source = tableSource; Table.RegisterNibForCellReuse(CrashTableViewCell.Nib, CrashTableViewCell.Key); var set = this.CreateBindingSet <CollectionViewController, CollectionViewModel>(); set.Bind(StartButton) .To(vm => vm.StartCommand); set.Bind(StopButton) .To(vm => vm.StopCommand); set.Bind(tableSource) .For(t => t.ItemsSource) .To(vm => vm.Items); set.Apply(); }
public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.Title = "Stations"; var source = new MvxStandardTableViewSource(StationsTable, "TitleText ."); StationsTable.Source = source; var bindingSet = this.CreateBindingSet <StationsView, StationsViewModel>(); bindingSet.Bind(RouteText).To(vm => vm.Route); bindingSet.Bind(RouteText).For("Visibility").To(vm => vm.IsFilteredByRoute).WithConversion(new MvxVisibilityValueConverter()); bindingSet.Bind(source).To(vm => vm.StationList); bindingSet.Apply(); StationsTable.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); this.Title = "Settings"; var src = new MvxStandardTableViewSource(this.TableView, "TitleText Key; DetailText Value"); var btnAction = new UIBarButtonItem(UIBarButtonSystemItem.Add); this.NavigationItem.RightBarButtonItem = btnAction; var set = this.CreateBindingSet <SettingsView, SettingsViewModel>(); set.Bind(src).To(x => x.Settings); set.Bind(src).For(x => x.SelectionChangedCommand).To(x => x.Select); set.Bind(btnAction).To(x => x.Actions); set.Apply(); this.TableView.Source = src; this.TableView.ReloadData(); }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = "Best Sellers"; var source = new MvxStandardTableViewSource( TableView, UITableViewCellStyle.Default, new NSString("CategoryListView"), "TitleText DisplayName;SelectedCommand ShowCategoryCommand", UITableViewCellAccessory.DisclosureIndicator); this.AddBindings( new Dictionary<object, string>() { { source, "ItemsSource List" } }); TableView.Source = source; TableView.ReloadData(); }