简体   繁体   English

如何更改 Xamarin.Forms ios 中的工具栏图标颜色

[英]how to change toolbar icon color in Xamarin.Forms ios

It works for Android but in ios the toolbar icon is coming in a monochrome color.它适用于 Android 但在 ios 中,工具栏图标为单色。 How to show them in the original icon image color?如何以原始图标图像颜色显示它们? Also I need to change the icon color dynamically based in the core source in xamarin.我还需要根据 xamarin 中的核心源动态更改图标颜色。

Thanks for your help in advance.提前感谢您的帮助。

You need to create entry in the Assets catalog and set RenderAs to 'Original'.您需要在 Assets 目录中创建条目并将 RenderAs 设置为“原始”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM