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

TabbedPage tab bar color

$
0
0

I could not find any method to set the tab bar color.
Maybe implement a custom renderer is a good idea, the code I write below on android platform, it crash;
Does the ViewGroup I should use in this issue???

public class MyTabbedPageRenderer : TabbedRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<TabbedPage> e)
        {
            base.OnElementChanged(e);
            if (e.OldElement == null)
            {
                var tabhost = ViewGroup as TabHost;
            }
        }
    }

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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