diff options
Diffstat (limited to 'Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs')
-rw-r--r-- | Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs index 44d86644..92b58455 100644 --- a/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs +++ b/Xamarin.Forms.ControlGallery.iOS/CustomRenderers.cs @@ -28,7 +28,7 @@ using MonoTouch.CoreLocation; [assembly: ExportRenderer(typeof(NativeListView2), typeof(NativeiOSListViewRenderer))] [assembly: ExportRenderer(typeof(NativeListView), typeof(NativeListViewRenderer))] [assembly: ExportRenderer(typeof(CustomMapView), typeof(CustomIOSMapRenderer))] - +[assembly: ExportRenderer(typeof(TabbedPage), typeof(TabbedPageWithCustomBarColorRenderer))] namespace Xamarin.Forms.ControlGallery.iOS { public class CustomIOSMapRenderer : ViewRenderer<CustomMapView, MKMapView> @@ -593,5 +593,16 @@ namespace Xamarin.Forms.ControlGallery.iOS } } + public class TabbedPageWithCustomBarColorRenderer : TabbedRenderer + { + public TabbedPageWithCustomBarColorRenderer() + { + TabBar.TintColor = UIColor.White; + TabBar.BarTintColor = UIColor.Purple; + + //UITabBar.Appearance.TintColor = UIColor.White; + //UITabBar.Appearance.BarTintColor = UIColor.Purple; + } + } } |