public override void Destroy()
 {
     pullToRefresh.Refreshing -= Pull_Refreshing;
     viewModel = null;
     pullToRefresh.Dispose();
     pullToRefresh = null;
 }
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridGenerateColumns;
     sfGrid.Dispose();
     sfGrid    = null;
     viewModel = null;
 }
		public override void Destroy ()
		{
			sfGrid.AutoGeneratingColumn -= GridGenerateColumns;
			sfGrid.Dispose ();
			sfGrid = null;
			viewModel = null;
		}
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			viewModel = new GettingStartedViewModel ();
			viewModel.SetRowstoGenerate (100);
			sfGrid.AutoGeneratingColumn += GridGenerateColumns;
			sfGrid.ItemsSource = (viewModel.OrdersInfo);
			return sfGrid;
		}
Exemple #5
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid    = new SfDataGrid(context);
     viewModel = new GettingStartedViewModel();
     viewModel.SetRowstoGenerate(100);
     sfGrid.AutoGeneratingColumn += GridGenerateColumns;
     sfGrid.ItemsSource           = (viewModel.OrdersInfo);
     return(sfGrid);
 }
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid               = new SfDataGrid(context);
     viewModel            = new GettingStartedViewModel();
     sfGrid.SelectionMode = SelectionMode.Single;
     viewModel.SetRowstoGenerate(100);
     sfGrid.AutoGeneratingColumn  += GridGenerateColumns;
     sfGrid.ItemsSource            = (viewModel.OrdersInfo);
     sfGrid.AllowResizingColumn    = true;
     sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
     return(sfGrid);
 }
 public override View GetSampleContent(Android.Content.Context context)
 {
     pullToRefresh             = new SfPullToRefresh(context);
     pullToRefresh.Refreshing += Pull_Refreshing;
     sfGrid = new SfDataGrid(context);
     sfGrid.HeaderRowHeight = 52;
     pullToRefresh.RefreshContentThreshold = 52;
     sfGrid.RowHeight     = 48;
     viewModel            = new GettingStartedViewModel();
     sfGrid.SelectionMode = SelectionMode.Single;
     viewModel.SetRowstoGenerate(100);
     sfGrid.AutoGenerateColumns = false;
     GridGenerateColumns();
     sfGrid.ColumnSizer            = ColumnSizer.Star;
     sfGrid.ItemsSource            = (viewModel.OrdersInfo);
     sfGrid.AllowResizingColumn    = true;
     sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
     pullToRefresh.PullableContent = sfGrid;
     return(pullToRefresh);
 }