CustomCellRenderer.cs 711 B

1234567891011121314151617181920212223
  1. using CoreGraphics;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Text;
  6. using UIKit;
  7. using Xamarin.Forms;
  8. using Xamarin.Forms.Platform.iOS;
  9. using XamarinFormsGoogleDriveAPI.iOS.Renderer;
  10. [assembly: ExportRenderer(typeof(ViewCell), typeof(CustomCellRenderer))]
  11. namespace XamarinFormsGoogleDriveAPI.iOS.Renderer
  12. {
  13. public class CustomCellRenderer : ViewCellRenderer
  14. {
  15. public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
  16. {
  17. var cell = base.GetCell(item, reusableCell, tv);
  18. cell.SelectionStyle = UITableViewCellSelectionStyle.Gray;
  19. return cell;
  20. }
  21. }
  22. }