summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Entry.cs24
1 files changed, 10 insertions, 14 deletions
diff --git a/Xamarin.Forms.Core/Entry.cs b/Xamarin.Forms.Core/Entry.cs
index 46cd7740..c8914566 100644
--- a/Xamarin.Forms.Core/Entry.cs
+++ b/Xamarin.Forms.Core/Entry.cs
@@ -88,25 +88,21 @@ namespace Xamarin.Forms
set { SetValue(FontSizeProperty, value); }
}
- void IFontElement.OnFontFamilyChanged(string oldValue, string newValue)
- {
- }
-
- void IFontElement.OnFontSizeChanged(double oldValue, double newValue)
- {
- }
-
double IFontElement.FontSizeDefaultValueCreator() =>
Device.GetNamedSize(NamedSize.Default, (Entry)this);
- void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue)
- {
- }
+ void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
- void IFontElement.OnFontChanged(Font oldValue, Font newValue)
- {
- }
+ void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+
+ void IFontElement.OnFontSizeChanged(double oldValue, double newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+ void IFontElement.OnFontChanged(Font oldValue, Font newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+
public event EventHandler Completed;
public event EventHandler<TextChangedEventArgs> TextChanged;