Пример #1
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridGenerateColumns;
     sfGrid.Dispose();
     sfGrid    = null;
     viewModel = null;
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (SfGrid != null)
         {
             SfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
             SfGrid.Dispose();
         }
         viewModel = null;
         SfGrid    = null;
     }
     base.Dispose(disposing);
 }
Пример #3
0
 public LoadMore()
 {
     this.SfGrid = new SfDataGrid();
     this.SfGrid.SelectionMode = SelectionMode.Single;
     viewModel = new LoadMoreViewModel();
     this.SfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     this.SfGrid.ItemsSource           = viewModel.OrdersInfo;
     this.SfGrid.ShowRowHeader         = false;
     this.SfGrid.HeaderRowHeight       = 45;
     this.SfGrid.RowHeight             = 45;
     this.SfGrid.AllowLoadMore         = true;
     this.SfGrid.GridStyle             = new LoadMoreStyle();
     this.SfGrid.LoadMoreCommand       = new Command(ExecuteCommand);
     this.AddSubview(this.SfGrid);
 }
Пример #4
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            sfGrid    = new SfDataGrid(context);
            viewModel = new LoadMoreViewModel();
            viewModel.SetRowstoGenerate(30);
            sfGrid.SelectionMode          = SelectionMode.Single;
            sfGrid.AutoGeneratingColumn  += GridGenerateColumns;
            sfGrid.ItemsSource            = (viewModel.OrdersInfo);
            sfGrid.AllowLoadMore          = true;
            sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
            this.sfGrid.LoadMoreCommand   = new Command(ExecuteCommand);
            this.sfGrid.GridStyle         = new LoadMoreStyle();
            sfGrid.LoadMoreView.Alpha     = 0.1f;

            return(sfGrid);
        }