Reputation: 15676
I have set the following blue background on several views and they all look the same...
When I set the same color (using a static property) on a TabBar using BarBackgroundColor = Colors.MyBlue
, it appears lighter. It's not my screen because I've looked up the RGB from a screenshot. (In fact, these images are screen shots.)
Is this a feature or a bug?
Upvotes: 2
Views: 139
Reputation: 15786
Set the TabBar.Translucent = false
in the custom Renderer will fix the issue:
[assembly: ExportRenderer(typeof(TabbedPage), typeof(CustomTabbedPage))]
namespace App131.iOS
{
public class CustomTabbedPage : TabbedRenderer
{
public CustomTabbedPage()
{
TabBar.Translucent = false;
}
}
}
Refer: ios-bartintcolor-is-always-lighter-than-the-color-that-is-defined and translucent
Upvotes: 1