private static void IconPropertyChanged(BindableObject bindable, object oldValue, object newValue) { var(fontFamily, code) = FontIconRepository.Find((string)newValue); bindable.SetValue(FontFamilyProperty, fontFamily); bindable.SetValue(TextProperty, code); }
public static void Install(string key, string fontFamily, Type iconNamesType) { FontIconRepository.Add(key, fontFamily, iconNamesType); }