Skip to content

Instantly share code, notes, and snippets.

using My.Controls;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using Xamarin.Forms;
namespace My.Controls
{
public class CarouselPicker : Picker
@paul-kiar
paul-kiar / CarouselViewRendererFix.cs
Created November 8, 2018 20:25
CarouselViewRenderer Position Fix for Android
using Android.Support.V7.Widget;
using System;
using System.Reflection;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(CarouselView), typeof(Apm.Mobile.Common.Droid.Renderers.CarouselViewRendererFix))]
namespace Apm.Mobile.Common.Droid.Renderers
{
// this is an implementation of this pull request: https://github.com/xamarin/Xamarin.Forms.CarouselView/pull/13/files
@paul-kiar
paul-kiar / CarouselViewRendererFix.cs
Last active November 8, 2018 20:26
CarouselViewRendererFix for iOS
using CoreGraphics;
using System;
using System.Reflection;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(CarouselView), typeof(YourNameSpace.iOS.Renderers.CarouselViewRendererFix))]
namespace YourNameSpace.iOS.Renderers
{
// this is an implementation of this pull request: https://github.com/xamarin/Xamarin.Forms.CarouselView/pull/13/files