Exemplo n.º 1
0
 public override void Destroy()
 {
     this.sfGrid.AutoGeneratingColumn -= GridAutoGeneratingColumns;
     this.sfGrid.Dispose();
     this.sfGrid = null;
     this.viewModel.Dispose();
     this.viewModel = null;
 }
 protected override void Dispose(bool disposing)
 {
     SfGrid.AutoGeneratingColumn -= GridAutoGeneratingColumns;
     SfGrid.Dispose();
     base.Dispose(disposing);
     viewmodel = null;
     SfGrid    = null;
 }
Exemplo n.º 3
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid    = new SfDataGrid(context);
     viewModel = new IncrementalLoadingViewModel(context);
     sfGrid.AlternatingRowColor   = Color.Rgb(206, 206, 206);
     sfGrid.ItemsSource           = viewModel.GridSource;
     sfGrid.AutoGeneratingColumn += GridAutoGeneratingColumns;
     return(sfGrid);
 }
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			viewModel = new IncrementalLoadingViewModel (context);
			sfGrid.AlternatingRowColor = Color.Rgb (206, 206, 206);
			sfGrid.ItemsSource = viewModel.GridSource;
			sfGrid.AutoGeneratingColumn += GridAutoGeneratingColumns;
			return sfGrid;
		}
Exemplo n.º 5
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid = new SfDataGrid(context);
     sfGrid.SelectionMode = SelectionMode.Single;
     viewModel            = new IncrementalLoadingViewModel(context);
     sfGrid.GridStyle.AlternatingRowColor = Color.Rgb(206, 206, 206);
     sfGrid.ItemsSource            = viewModel.GridSource;
     sfGrid.AutoGeneratingColumn  += GridAutoGeneratingColumns;
     sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
     return(sfGrid);
 }
 public IncrementalLoading()
 {
     this.SfGrid                 = new SfDataGrid();
     viewmodel                   = new IncrementalLoadingViewModel();
     this.SfGrid.ItemsSource     = viewmodel.GridSource;
     this.SfGrid.SelectionMode   = SelectionMode.Single;
     this.SfGrid.HeaderRowHeight = 45;
     this.SfGrid.RowHeight       = 52;
     this.SfGrid.GridStyle.AlternatingRowColor = UIColor.FromRGB(219, 219, 219);
     this.SfGrid.AutoGeneratingColumn         += GridAutoGeneratingColumns;
     this.AddSubview(SfGrid);
     this.AddSubview(viewmodel.LoaderBorder);
 }
		public IncrementalLoading()
		{
			this.SfGrid = new SfDataGrid ();
			viewmodel = new IncrementalLoadingViewModel ();
			this.SfGrid.ItemsSource = viewmodel.GridSource;
			this.SfGrid.HeaderRowHeight = 45;
			this.SfGrid.RowHeight = 52;
			this.SfGrid.AlternatingRowColor = UIColor.FromRGB (219, 219, 219);
			this.SfGrid.AutoGeneratingColumn += GridAutoGeneratingColumns;
			this.control = this;
			this.AddSubview (SfGrid);
            this.AddSubview(viewmodel.border);
		}
		public override void Destroy ()
		{
			this.sfGrid.AutoGeneratingColumn -= GridAutoGeneratingColumns;
			this.sfGrid.Dispose ();
			this.sfGrid = null;
            this.viewModel.Dispose();
			this.viewModel = null;
		}