Custom Fonts in Android

Hi.

I am following this example for setting custom font for Android, iOS and WP http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/fonts/

Everything works fine except on android when there is Binding on the TextProperty of my custom label.
The custom font works on the label but as soon as I change the property value of the model which is binded to the MyLabel.TextProperty, the font changes to the default system font.

Any ideas what could be the reason and how to fix it?

Answers

  • Problem solved: Override OnElementPropertyChanged, not OnElementChanged in the custom renderer for android

Sign In or Register to comment.