summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/FontExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/FontExtensions.cs b/Xamarin.Forms.Platform.WinRT/FontExtensions.cs
index efab6118..069a9975 100644
--- a/Xamarin.Forms.Platform.WinRT/FontExtensions.cs
+++ b/Xamarin.Forms.Platform.WinRT/FontExtensions.cs
@@ -31,7 +31,7 @@ namespace Xamarin.Forms.Platform.WinRT
self.FontWeight = font.FontAttributes.HasFlag(FontAttributes.Bold) ? FontWeights.Bold : FontWeights.Normal;
}
- public static void ApplyFont(this TextElement self, Font font)
+ public static void ApplyFont(this Windows.UI.Xaml.Documents.TextElement self, Font font)
{
self.FontSize = font.UseNamedSize ? font.NamedSize.GetFontSize() : font.FontSize;
self.FontFamily = !string.IsNullOrEmpty(font.FontFamily) ? new FontFamily(font.FontFamily) : (FontFamily)WApplication.Current.Resources["ContentControlThemeFontFamily"];