[assembly:ExportRenderer(typeof(Picker), typeof(PlaceHolderPicker), new[] { typeof(VisualMarker.MaterialVisual), typeof(CustomMaterial) })]
namespace VisualPicker.iOS
{
public class PlaceHolderPicker : MaterialPickerRenderer, IMaterialEntryRenderer
{
public PlaceHolderPicker()
{
}
string IMaterialEntryRenderer.Placeholder => Element?.Title;
Color IMaterialEntryRenderer.TextColor => Color.Purple;
}
}
namespace VisualPicker
{
public class CustomMaterial : IVisual
{
}
}
<Picker
x:Name="Picker"
Title="Country Code"
FontSize="18"
SelectedIndex="0"
VerticalOptions="Fill"
Margin="0,10"
Visual="CustomMaterial"
HorizontalOptions="Fill"
Grid.Row="3"
Grid.Column="0">
</Picker>