diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-03-06 10:35:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 10:35:17 +0100 |
commit | 8bc7ba3faade6e7396347f20dd8968fd35491671 (patch) | |
tree | b7427708c6771d38fb7bcc0b099eb492f4b4b93c /Xamarin.Forms.Platform.WinRT | |
parent | bc53ebe2bfb1bfc1b3e4c8f098691670337b3412 (diff) | |
download | xamarin-forms-8bc7ba3faade6e7396347f20dd8968fd35491671.tar.gz xamarin-forms-8bc7ba3faade6e7396347f20dd8968fd35491671.tar.bz2 xamarin-forms-8bc7ba3faade6e7396347f20dd8968fd35491671.zip |
[C] ITextElement and TextElement (#789)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/FontExtensions.cs | 2 |
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"]; |