Xamarin交叉平板9-patch样溶液

有没有办法使用可伸缩的图像,如9-patch for
android或resizable
ImageWithCapInsets:所有平台上的IOS edgeInsets? 最佳答案 在传统的Xamarin开发中,您需要处理平台本机映像功能.平台不共享任何图像格式,并且您不希望处理图像平台无关,因为本机类针对内存和性能进行了优化.您将失去这些优化的所有好处.

在Xamarin.Forms中,您需要寻找像NGraphics或NControl这样的第三方库…

在Xamarin.Forms中查看关于Working with Images的这篇优秀文章.

点赞