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

℡╲_俬逩灬. 提交于 2019-12-24 22:15:09

问题


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 ?


回答1:


  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/



来源:https://stackoverflow.com/questions/48092841/xamarin-forms-how-to-add-a-gradient-color-for-tabbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!