summaryrefslogtreecommitdiff
path: root/Stubs/Xamarin.Forms.Platform.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Stubs/Xamarin.Forms.Platform.cs')
-rw-r--r--Stubs/Xamarin.Forms.Platform.cs141
1 files changed, 141 insertions, 0 deletions
diff --git a/Stubs/Xamarin.Forms.Platform.cs b/Stubs/Xamarin.Forms.Platform.cs
new file mode 100644
index 00000000..5f3de257
--- /dev/null
+++ b/Stubs/Xamarin.Forms.Platform.cs
@@ -0,0 +1,141 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Xamarin.Forms;
+
+#if __ANDROID__
+using Xamarin.Forms.Platform.Android;
+#elif WINDOWS_PHONE || WINDOWS_PHONE_APP
+using Xamarin.Forms.Platform.WinPhone;
+#elif __IOS__
+using Xamarin.Forms.Platform.iOS;
+#endif
+
+namespace Xamarin.Forms.Platform
+{
+ internal static class Loader
+ {
+ internal static void Load ()
+ {
+ }
+ }
+
+#if !WINDOWS_PHONE && !WINDOWS_PHONE_APP
+ [RenderWith(typeof(BoxRenderer))]
+#else
+ [RenderWith (typeof(BoxViewRenderer))]
+#endif
+ internal class _BoxViewRenderer { }
+
+ [RenderWith(typeof(EntryRenderer))]
+ internal class _EntryRenderer { }
+
+ [RenderWith (typeof (EditorRenderer))]
+ internal class _EditorRenderer { }
+
+ [RenderWith (typeof (LabelRenderer))]
+ internal class _LabelRenderer { }
+
+ [RenderWith (typeof (ImageRenderer))]
+ internal class _ImageRenderer { }
+
+ [RenderWith (typeof (ButtonRenderer))]
+ internal class _ButtonRenderer { }
+
+ [RenderWith (typeof (TableViewRenderer))]
+ internal class _TableViewRenderer { }
+
+ [RenderWith (typeof (ListViewRenderer))]
+ internal class _ListViewRenderer { }
+
+ [RenderWith (typeof (CarouselViewRenderer))]
+ internal class _CarouselViewRenderer { }
+
+ [RenderWith (typeof (SliderRenderer))]
+ internal class _SliderRenderer { }
+
+ [RenderWith (typeof (WebViewRenderer))]
+ internal class _WebViewRenderer { }
+
+ [RenderWith (typeof (SearchBarRenderer))]
+ internal class _SearchBarRenderer { }
+
+ [RenderWith (typeof (SwitchRenderer))]
+ internal class _SwitchRenderer { }
+
+ [RenderWith (typeof (DatePickerRenderer))]
+ internal class _DatePickerRenderer { }
+
+ [RenderWith (typeof (TimePickerRenderer))]
+ internal class _TimePickerRenderer { }
+
+ [RenderWith (typeof (PickerRenderer))]
+ internal class _PickerRenderer { }
+
+ [RenderWith (typeof (StepperRenderer))]
+ internal class _StepperRenderer { }
+
+ [RenderWith (typeof (ProgressBarRenderer))]
+ internal class _ProgressBarRenderer { }
+
+ [RenderWith (typeof (ScrollViewRenderer))]
+ internal class _ScrollViewRenderer { }
+
+#if !WINDOWS_PHONE && !WINDOWS_PHONE_APP
+ [RenderWith (typeof (ToolbarRenderer))]
+#else
+ [RenderWith (null)]
+#endif
+ internal class _ToolbarRenderer { }
+
+ [RenderWith (typeof (ActivityIndicatorRenderer))]
+ internal class _ActivityIndicatorRenderer { }
+
+ [RenderWith (typeof (FrameRenderer))]
+ internal class _FrameRenderer { }
+
+#if !WINDOWS_PHONE && !WINDOWS_PHONE_APP
+ [RenderWith (typeof (NavigationMenuRenderer))]
+ internal class _NavigationMenuRenderer { }
+
+ [RenderWith (typeof (OpenGLViewRenderer))]
+#else
+ [RenderWith (null)]
+#endif
+
+ internal class _OpenGLViewRenderer { }
+
+#if !WINDOWS_PHONE && !WINDOWS_PHONE_APP
+ [RenderWith (typeof (TabbedRenderer))]
+#else
+ [RenderWith (typeof (TabbedPageRenderer))]
+#endif
+ internal class _TabbedPageRenderer { }
+
+#if !WINDOWS_PHONE && !WINDOWS_PHONE_APP
+ [RenderWith (typeof (NavigationRenderer))]
+#else
+ [RenderWith (typeof (NavigationPageRenderer))]
+#endif
+ internal class _NavigationPageRenderer { }
+
+ [RenderWith (typeof (CarouselPageRenderer))]
+ internal class _CarouselPageRenderer { }
+
+ [RenderWith (typeof (PageRenderer))]
+ internal class _PageRenderer { }
+
+#if !__IOS__
+ [RenderWith (typeof (MasterDetailRenderer))]
+#else
+ [RenderWith (typeof (PhoneMasterDetailRenderer))]
+#endif
+ internal class _MasterDetailPageRenderer { }
+}
+
+
+
+
+