summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs')
-rw-r--r--Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
index 706553e3..26029e43 100644
--- a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
+++ b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs
@@ -20,6 +20,7 @@ using RectangleF = CoreGraphics.CGRect;
[assembly: ExportRenderer(typeof(TabbedPage), typeof(TabbedPageWithCustomBarColorRenderer))]
[assembly: ExportRenderer(typeof(Bugzilla43161.AccessoryViewCell), typeof(AccessoryViewCellRenderer))]
[assembly: ExportRenderer(typeof(Bugzilla36802.AccessoryViewCell), typeof(AccessoryViewCellRenderer))]
+[assembly: ExportRenderer(typeof(Bugzilla52700.NoSelectionViewCell), typeof(NoSelectionViewCellRenderer))]
namespace Xamarin.Forms.ControlGallery.iOS
{
public class CustomIOSMapRenderer : ViewRenderer<CustomMapView, MKMapView>
@@ -583,5 +584,18 @@ namespace Xamarin.Forms.ControlGallery.iOS
return cell;
}
}
+
+ public class NoSelectionViewCellRenderer : ViewCellRenderer
+ {
+ public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
+ {
+ var cell = base.GetCell(item, reusableCell, tv);
+
+ // remove highlight on selected cell
+ cell.SelectionStyle = UITableViewCellSelectionStyle.None;
+
+ return cell;
+ }
+ }
}