summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-04-11 19:22:14 -0600
committerJason Smith <jason.smith@xamarin.com>2016-04-11 18:22:14 -0700
commit0a20bdaa3c373ec303c9a94ae45ecaa144996ba5 (patch)
treec4f2f38a34170800a8ae60da0e08f4546562fe14 /Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs
parent90d8976cfdadc1582e366c0b6f6611d6fe83f5ff (diff)
downloadxamarin-forms-0a20bdaa3c373ec303c9a94ae45ecaa144996ba5.tar.gz
xamarin-forms-0a20bdaa3c373ec303c9a94ae45ecaa144996ba5.tar.bz2
xamarin-forms-0a20bdaa3c373ec303c9a94ae45ecaa144996ba5.zip
Fix warnings 0219 and 0618 in WP8 Platform (#63)
* Fix warnings 0219 and 0618 in WP8 Platform Remove suppression of warnings 0219 and 0618 in WP8 Platform * Remove pragma for 0618 and use Platform.GetRenderer * All warnings as errors in Release configuration
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs b/Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs
index 27e37997..aca47d6a 100644
--- a/Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/VisualElementRenderer.cs
@@ -144,9 +144,7 @@ namespace Xamarin.Forms.Platform.WinPhone
var child = Element.LogicalChildren[i] as VisualElement;
if (child == null)
continue;
-#pragma warning disable 618
- IVisualElementRenderer renderer = child.GetRenderer();
-#pragma warning restore 618
+ IVisualElementRenderer renderer = Platform.GetRenderer(child);
if (renderer == null)
continue;
Rectangle bounds = child.Bounds;