diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/LabelRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/LabelRenderer.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs b/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs index 41a0b477..cb33cde9 100644 --- a/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs +++ b/Xamarin.Forms.Platform.WinRT/LabelRenderer.cs @@ -23,7 +23,9 @@ namespace Xamarin.Forms.Platform.WinRT run.Foreground = span.ForegroundColor.ToBrush(); if (!span.IsDefault()) +#pragma warning disable 618 run.ApplyFont(span.Font); +#pragma warning restore 618 return run; } @@ -131,7 +133,9 @@ namespace Xamarin.Forms.Platform.WinRT if (label == null || (label.IsDefault() && !_fontApplied)) return; +#pragma warning disable 618 Font fontToApply = label.IsDefault() ? Font.SystemFontOfSize(NamedSize.Medium) : label.Font; +#pragma warning restore 618 textBlock.ApplyFont(fontToApply); _fontApplied = true; |