If I am set UIColor.Red
in the NavigationBar it is work Perfect.
Code :
this.NavigationController.NavigationBar.BarTintColor = UIColor.Red;
this.NavigationController.NavigationBarHidden = false;
Output:
But If i set Hex color
it is display some other color not actual I want
this.NavigationController.NavigationBar.BarTintColor = UIColor.Clear.FromHexString("#0072BA", 1.0f);
this.NavigationController.NavigationBarHidden = false;
Output :
Actual Output Color :
Note :
I also set color using
FromRGB
but that also display different color.
Is there any property I miss then tell me because I am new to Xamarin and Ios.
Any Help be Appreciated.
InBuild color work but why Hex Color code not work.
By the Combine of My idea
and @KKRocks Solution
now is work for me is below thing.
Use this code :
this.NavigationController.NavigationBar.BarTintColor = UIColor.FromRGB(0,114,186);
this.NavigationController.NavigationBar.Translucent = false;