0

xamarin.forms中的圖像渲染器不在Xamarin.Forms(Portable)中渲染,它在Windows RT 8.1手機的Xamarin.Forms(Shared)中工作。爲什麼?在RT RT 8.1手機中是否有另一種渲染圖像控制的方式。圖像控件不在WinRT 8.1中呈現Xamarin.Forms(Portable)項目

我的代碼:這裏 - 裝配代碼

[組件:ExportRenderer(typeof運算(Xamarin.Forms.Image)的typeof(ImageWinRenderer))]下面

公共類

-renderer類ImageWinRenderer:Xamarin.Forms.Platform.WinRT.ImageRenderer

  • 覆蓋onelement改變方法

保護覆蓋無效OnElementChanged(ElementChangedEventArgs E)

+0

請在此處添加您的代碼。 –

回答

-1

我試着用圖像渲染工作共享項目(xamarin),它的工作!。仍然無法找到爲什麼它不在便攜式項目中工作的確鑿答案