Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Foundation;
- using Xamarin.Forms;
- using Xamarin.Forms.Platform.iOS;
- [assembly: ExportRenderer(typeof(CollectionView), typeof(CollectionViewRenderer2))]
- namespace TestAnimationForms.iOS
- {
- public class CollectionViewRenderer2 : CollectionViewRenderer
- {
- protected override GroupableItemsViewController<GroupableItemsView> CreateController(GroupableItemsView itemsView, ItemsViewLayout layout)
- {
- return new CustomGroupableItemsViewController(itemsView, layout);
- }
- }
- public class CustomGroupableItemsViewController : GroupableItemsViewController<GroupableItemsView>
- {
- public CustomGroupableItemsViewController(GroupableItemsView groupableItemsView, ItemsViewLayout layout) : base(groupableItemsView, layout)
- {
- }
- protected override void UpdateTemplatedCell(TemplatedCell cell, NSIndexPath indexPath)
- {
- cell.SelectedBackgroundView = null;
- base.UpdateTemplatedCell(cell, indexPath);
- }
- protected override void UpdateDefaultCell(DefaultCell cell, NSIndexPath indexPath)
- {
- cell.SelectedBackgroundView = null;
- base.UpdateDefaultCell(cell, indexPath);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement