summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/LabelRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/LabelRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/LabelRenderer.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WP8/LabelRenderer.cs b/Xamarin.Forms.Platform.WP8/LabelRenderer.cs
index 86c68adf..fbb3f9c2 100644
--- a/Xamarin.Forms.Platform.WP8/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/LabelRenderer.cs
@@ -24,8 +24,9 @@ namespace Xamarin.Forms.Platform.WinPhone
run.Foreground = span.ForegroundColor.ToBrush();
if (!span.IsDefault())
+#pragma warning disable 618
run.ApplyFont(span.Font);
-
+#pragma warning restore 618
return run;
}
}
@@ -121,7 +122,9 @@ namespace Xamarin.Forms.Platform.WinPhone
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;