Beispiel #1
0
 public TreeGettingStarted()
 {
     treeView  = new SfTreeView();
     viewModel = new FoodSpeciesViewModel();
     treeView.AutoExpandMode     = AutoExpandMode.AllNodesExpanded;
     treeView.ExpandActionTarget = ExpandActionTarget.Node;
     treeView.ChildPropertyName  = "Species";
     treeView.ItemsSource        = viewModel.SpeciesType;
     treeView.Adapter            = new GettingStartedAdapter();
     this.AddSubview(treeView);
 }
Beispiel #2
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     treeView  = new SfTreeView(context, null);
     viewModel = new FoodSpeciesViewModel();
     treeView.FullRowSelect      = true;
     treeView.AutoExpandMode     = AutoExpandMode.AllNodesExpanded;
     treeView.ExpandActionTarget = ExpandActionTarget.Node;
     treeView.ChildPropertyName  = "Species";
     treeView.ItemsSource        = viewModel.SpeciesType;
     treeView.Adapter            = new GettingStartedAdapter();
     return(treeView);
 }