Last active
December 21, 2019 14:09
-
-
Save icebeam7/34329cde04625a2ceb06cb6c7f8eb725 to your computer and use it in GitHub Desktop.
MyCustomPicker : CustomPicker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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