xamarin.ios - Customize TabbedPage color schema - Xamarin.Forms -
Text after "
There is a way I can customize the color scheme of the eye on the Xamarin.Forms.TabbedPage
object. So it does not take the default look and feel of the target platform?
I want to change the color of the font, background and current selected tab color.
I recommend using a custom renderer. Here's an example for iOS: Exormine. Just for this class in the iOS project for Xamarin You can also use Android to complete a custom renderer. The implementation of Android's custom renderer looks different from the iOS version.
[Assembly: ExportRenderer (typeof (TabbedPage), typeof (TabbedPageRenderer))] namespace MyApp.iOS {public class TabbedPageRenderer : TabbedRenderer {Protected Override Zero OnElementChanged (VisualElementChangedEventArgs e) {base.OnElementChanged (E); TabBar.TintColor = UIColor.White; TabBar.BarTintColor = UIColor.Black; TabBar.BackgroundColor = UIColor.Gray; }}}
Comments
Post a Comment