Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Last active December 21, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/34329cde04625a2ceb06cb6c7f8eb725 to your computer and use it in GitHub Desktop.
Save icebeam7/34329cde04625a2ceb06cb6c7f8eb725 to your computer and use it in GitHub Desktop.
MyCustomPicker : CustomPicker.cs
using Xamarin.Forms;
namespace MyCustomPicker.Controls
{
public class CustomPicker : Picker
{
public static readonly BindableProperty ItemFontFamilyProperty =
BindableProperty.Create("ItemFontFamily", typeof(string), typeof(CustomPicker), defaultBindingMode: BindingMode.OneWay);
public string ItemFontFamily
{
get { return (string)GetValue(ItemFontFamilyProperty); }
set { SetValue(ItemFontFamilyProperty, value); }
}
public static readonly BindableProperty ItemColorProperty =
BindableProperty.Create("ItemColor", typeof(string), typeof(CustomPicker), defaultBindingMode: BindingMode.OneWay);
public string ItemColor
{
get { return (string)GetValue(ItemColorProperty); }
set { SetValue(ItemColorProperty, value); }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment