Пример #1
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridGenerateColumns;
     sfGrid.Dispose();
     sfGrid       = null;
     viewModel    = null;
     defaultStyle = null;
     darkStyle    = null;
     blueStyle    = null;
     redStyle     = null;
     greenStyle   = null;
 }
Пример #2
0
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			viewModel = new StylesViewModel ();
			sfGrid.ItemsSource = (viewModel.OrdersInfo);
			sfGrid.AutoGeneratingColumn += GridGenerateColumns;
			sfGrid.AlternatingRowColor = Color.Rgb (206, 206, 206);
			sfGrid.SelectionMode = SelectionMode.Single;
			sfGrid.GroupColumnDescriptions.Add (new GroupColumnDescription (){ ColumnName = "CustomerID" });
			sfGrid.GridViewCreated += SfGrid_GridViewCreated;
			sfGrid.QueryRowHeight += SfGrid_QueryRowHeight;
			defaultStyle = new DataGridStyle ();
			darkStyle = new Dark ();
			blueStyle = new Blue ();
			redStyle = new Red ();
			greenStyle = new Green ();
			return sfGrid;
		}
Пример #3
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid                        = new SfDataGrid(context);
     viewModel                     = new StylesViewModel();
     sfGrid.ItemsSource            = (viewModel.OrdersInfo);
     sfGrid.AutoGeneratingColumn  += GridGenerateColumns;
     sfGrid.SelectionMode          = SelectionMode.Single;
     sfGrid.GridViewCreated       += SfGrid_GridViewCreated;
     sfGrid.QueryRowHeight        += SfGrid_QueryRowHeight;
     sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
     sfGrid.Alpha                  = 1.0f;
     defaultStyle                  = new DataGridStyle();
     darkStyle                     = new Dark();
     blueStyle                     = new Blue();
     redStyle                      = new Red();
     greenStyle                    = new Green();
     purpleStyle                   = new Purple();
     return(sfGrid);
 }
Пример #4
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid                       = new SfDataGrid(context);
     viewModel                    = new StylesViewModel();
     sfGrid.ItemsSource           = (viewModel.OrdersInfo);
     sfGrid.AutoGeneratingColumn += GridGenerateColumns;
     sfGrid.AlternatingRowColor   = Color.Rgb(206, 206, 206);
     sfGrid.SelectionMode         = SelectionMode.Single;
     sfGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
     {
         ColumnName = "CustomerID"
     });
     sfGrid.GridViewCreated += SfGrid_GridViewCreated;
     sfGrid.QueryRowHeight  += SfGrid_QueryRowHeight;
     defaultStyle            = new DataGridStyle();
     darkStyle  = new Dark();
     blueStyle  = new Blue();
     redStyle   = new Red();
     greenStyle = new Green();
     return(sfGrid);
 }
Пример #5
0
		public override void Destroy ()
		{
			sfGrid.AutoGeneratingColumn -= GridGenerateColumns;
			sfGrid.Dispose ();
			sfGrid = null;
			viewModel = null;
			defaultStyle = null;
			darkStyle = null;
			blueStyle = null;
			redStyle = null;
			greenStyle = null;
		}