Looking through the discussions on creating custom views, it seems I need to use ViewRenderer. In my Android project, this isn't defined, so I get compilation errors.
using System;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
namespace CustomStuff.Android.Renderers
{
public class SongViewRenderer
{
public SongViewRenderer () : ViewRenderer<SongView, View>
{
}
}
}
I see "Error CS1018: Keyword 'this' or 'base' expected (CS1018)" straight after ViewRenderer<SongView, View>. Usually I use Resolve to fix this but that doesn't appear if I right click on ViewRenderer.