Example #1
0
 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);
 }
Example #2
0
 public static void Install(string key, string fontFamily, Type iconNamesType)
 {
     FontIconRepository.Add(key, fontFamily, iconNamesType);
 }