public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
     sfGrid.Dispose();
     sfGrid = null;
     viewModel = null;
 }
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
     sfGrid.Dispose();
     sfGrid    = null;
     viewModel = null;
 }
 public override View GetSampleContent(Context context)
 {
     sfGrid    = new SfDataGrid(context);
     viewModel = new FrozenViewViewModel();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = viewModel.Products;
     sfGrid.FrozenRowsCount       = 2;
     sfGrid.FrozenColumnsCount    = 1;
     return(sfGrid);
 }
 public override View GetSampleContent(Context context)
 {
     sfGrid = new SfDataGrid(context);
     viewModel = new FrozenViewViewModel ();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource = viewModel.Products;
     sfGrid.FrozenRowsCount = 2;
     sfGrid.FrozenColumnsCount = 1;
     return sfGrid;
 }
 public FrozenView ()
 {
     sfGrid = new SfDataGrid ();
     viewModel = new FrozenViewViewModel ();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource = viewModel.Products;
     sfGrid.FrozenRowsCount = 2;
     sfGrid.FrozenColumnsCount = 1;
     this.control = this;
     this.AddSubview (sfGrid);
 }
示例#6
0
 public FrozenView()
 {
     sfGrid    = new SfDataGrid();
     viewModel = new FrozenViewViewModel();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = viewModel.Products;
     sfGrid.FrozenRowsCount       = 2;
     sfGrid.FrozenColumnsCount    = 1;
     this.control = this;
     this.AddSubview(sfGrid);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (sfGrid != null)
         {
             sfGrid.GridLoaded -= DataGrid_GridLoaded;
             sfGrid.Dispose();
         }
         frozenView = null;
         viewModel  = null;
         sfGrid     = null;
     }
     base.Dispose(disposing);
 }
示例#8
0
 public FrozenView()
 {
     sfGrid     = new SfDataGrid();
     frozenView = new UIView();
     this.sfGrid.SelectionMode = SelectionMode.Single;
     viewModel = new FrozenViewViewModel();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = viewModel.Products;
     if (Utility.IsIpad)
     {
         this.sfGrid.ColumnSizer = ColumnSizer.Star;
     }
     sfGrid.FrozenRowsCount    = 2;
     sfGrid.FrozenColumnsCount = 1;
     sfGrid.GridLoaded        += DataGrid_GridLoaded;
     this.sfGrid.GridStyle     = new FrozenViewStyle();
     this.AddSubview(sfGrid);
 }
示例#9
0
        public override View GetSampleContent(Context context)
        {
            sfGrid    = new SfDataGrid(context);
            viewModel = new FrozenViewViewModel();
            sfGrid.AutoGeneratingColumn  += GridAutoGenerateColumns;
            sfGrid.ItemsSource            = viewModel.Products;
            sfGrid.SelectionMode          = SelectionMode.Single;
            sfGrid.FrozenRowsCount        = 2;
            sfGrid.FrozenColumnsCount     = 1;
            sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
            sfGrid.GridLoaded            += DataGrid_GridLoaded;
            frozenView = new View(context);
            frozenView.SetBackgroundColor(Color.ParseColor("#757575"));
            relativeLayout = new RelativeLayout(context);
            relativeLayout.AddView(sfGrid);
            relativeLayout.AddView(frozenView, ViewGroup.LayoutParams.MatchParent, (int)(1 * Resources.System.DisplayMetrics.Density));

            return(relativeLayout);
        }