bitwarden-android/src/iOS/Renderers/CustomTabbedRenderer.cs

22 lines
773 B
C#
Raw Normal View History

2019-06-24 21:29:23 +03:00
using Bit.iOS.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(TabbedPage), typeof(CustomTabbedRenderer))]
namespace Bit.iOS.Renderers
{
public class CustomTabbedRenderer : TabbedRenderer
{
2019-06-24 22:13:33 +03:00
protected override void OnElementChanged(VisualElementChangedEventArgs e)
2019-06-24 21:29:23 +03:00
{
2019-06-24 22:13:33 +03:00
base.OnElementChanged(e);
2019-06-24 21:29:23 +03:00
TabBar.Translucent = false;
TabBar.Opaque = true;
2019-06-24 22:13:33 +03:00
TabBar.SelectedImageTintColor =
((Color)Xamarin.Forms.Application.Current.Resources["TabBarSelectedItemColor"]).ToUIColor();
TabBar.UnselectedItemTintColor =
((Color)Xamarin.Forms.Application.Current.Resources["TabBarItemColor"]).ToUIColor();
2019-06-24 21:29:23 +03:00
}
}
}