Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

why is my custom navigationpage renderer's code being ignored

$
0
0

`public class ExtendedNavigationPageRenderer : NavigationRenderer
{
protected override void OnElementChanged (VisualElementChangedEventArgs e)
{
base.OnElementChanged (e);
if (NavigationBar != null) {
this.NavigationBar.TintColor = UIColor.Gray;
this.NavigationBar.BarTintColor = UIColor.Green;

        }
    }
}`

The navigaiton bar doesn't get updated no matter what I do. I've verified that the code is run, as I break point it.
Any change I make to navigation bar just simply won't work.
What's going on?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>