xamarin.forms中的图像渲染器不在xamarin.forms中渲染(portable),并且它在xamarin.forms(共享)中用于Windows RT 8.1电话。为什么会这样?是否有另一种方法可以在Windows RT 8.1电话中渲染图像控制。
我的代码: - 组装代码
[汇编:exportrenderer(typeof(xamarin.forms.image),typeof(imageWinrenderer))]
- 下面的授课者类
公共类ImageWinrenderer:xamarin.forms.platform.winrt.imagerenderer
- Override Onement改变了方法
受保护的覆盖void onelementChanged(元素Changedeventargs e)
我尝试使用共享项目(Xamarin)中的图像渲染,它起作用了!!不过,找不到结论性答案,以了解为什么它在便携式项目中不起作用