Afsara
Afsara

Reputation: 1461

Xamarin.forms : how to add a gradient color for tabbar

in xamrin froms app, we have a tabbar, we need to add some gradient color for that tab bar in both iOS and android devices. how can we that ? enter image description here

Upvotes: 0

Views: 782

Answers (1)

Yun CHEN
Yun CHEN

Reputation: 6648

  1. Make a image with gradient color by your designer;
  2. The apply it to tabbar like:

    UITabBar.Appearance.BackgroundImage = image;

Official documents: https://developer.xamarin.com/api/type/UIKit.UITabBar+UITabBarAppearance/

Upvotes: 1

Related Questions