Xamarin.Plugins icon indicating copy to clipboard operation
Xamarin.Plugins copied to clipboard

using DynamicResource in fontsize cause problem

Open jerry2007 opened this issue 7 years ago • 0 comments

When I use in IconLabel FontSize="{DynamicResource FontSize16}" base renderer after dynamic change of fontsize change FontFamily also, so OnElementPropertyChange is invoked but with e.PropertyName equals "Font" so method UpdateText in renederesrs is not called and FontFamily is not correct and after that all bad or none (only text) is shown in label

fix: add to renderers method OnElementPropertyChange:

switch (e.PropertyName) { case nameof(IconLabel.FontSize): case nameof(IconLabel.Text): case nameof(IconLabel.TextColor): case nameof(Font): UpdateText(); break; }

jerry2007 avatar Jun 13 '17 12:06 jerry2007