summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/ViewExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/ViewExtensions.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/ViewExtensions.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/ViewExtensions.cs b/Xamarin.Forms.Platform.WP8/ViewExtensions.cs
new file mode 100644
index 00000000..1d46b3b2
--- /dev/null
+++ b/Xamarin.Forms.Platform.WP8/ViewExtensions.cs
@@ -0,0 +1,19 @@
+using System;
+
+namespace Xamarin.Forms.Platform.WinPhone
+{
+ public static class ViewExtensions
+ {
+ [Obsolete("Use Platform.GetRenderer")]
+ public static IVisualElementRenderer GetRenderer(this VisualElement self)
+ {
+ return Platform.GetRenderer(self);
+ }
+
+ [Obsolete("Use Platform.SetRenderer")]
+ public static void SetRenderer(this VisualElement self, IVisualElementRenderer renderer)
+ {
+ Platform.SetRenderer(self, renderer);
+ }
+ }
+} \ No newline at end of file