예제 #1
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
     sfGrid.Dispose();
     sfGrid = null;
     viewModel = null;
 }
예제 #2
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
     sfGrid.Dispose();
     sfGrid    = null;
     viewModel = null;
 }
예제 #3
0
 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);
 }
예제 #4
0
 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;
 }
예제 #5
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);
 }
예제 #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);
 }
예제 #7
0
 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);
        }