【问题标题】:how to change toolbar icon color in Xamarin.Forms ios如何在 Xamarin.Forms ios 中更改工具栏图标颜色
【发布时间】:2019-10-01 02:06:29
【问题描述】:

它适用于 Android,但在 ios 中,工具栏图标是单色的。如何以原始图标图像颜色显示它们?我还需要根据 xamarin 的核心源动态更改图标颜色。

提前感谢您的帮助。

【问题讨论】:

    标签: ios xamarin xamarin.forms xamarin.ios


    【解决方案1】:

    您需要在 Assets 目录中创建条目并将 RenderAs 设置为“原始”。

    【讨论】:

    • 感谢您的回复。你能举一些代码示例吗?
    • 这不是通过代码完成的。查看什么是资产目录,您应该了解它。
    猜你喜欢
    • 1970-01-01
    • 2021-07-19
    • 1970-01-01
    • 1970-01-01
    • 2019-03-11
    • 2015-04-21
    • 1970-01-01
    • 2020-05-09
    • 1970-01-01
    相关资源
    最近更新 更多