【发布时间】:2018-06-29 16:59:47
【问题描述】:
我有一个绑定到项目的 Xamarin.Android 部分的 API,它将图像作为 Drawable 对象返回。我需要在 UI 中显示这个图像,它是用 Xamarin.Forms 编写的。问题是那里的 Image 控件只接受 ImageSource 作为源。 如何将 Drawable 包装到 ImageSource 对象中?
【问题讨论】:
-
您找到解决方案了吗?
标签: c# xamarin.forms xamarin.android