Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Xamarin.Forms 1.3.1 / Unified API Image not showing & throwing exception

$
0
0

I have 2 issues with Image resources after upgrading to Xamarin.Forms 1.3.1 and migrating to the Unified iOS API.

The first is that images created in XAML using <Image Source = "Images/imagefile.png" /> are simply not displayed.

The second is that an image set as a BackgroundImage on a ContentPage throws a null exception, stack trace as follows:

at UIKit.UIColor.FromPatternImage (UIKit.UIImage image) [0x00006] in /Developer/MonoTouch/Source/monotouch/src/build/native/UIKit/UIColor.g.cs:171 
at Xamarin.Forms.Platform.iOS.PageRenderer.UpdateBackground () [0x00000] in <filename unknown>:0 
at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidLoad () [0x00000] in <filename unknown>:0 

Is anyone else having issues after the upgrade?

As an attempt of resolution I have tried: Changing the image build type, cleaning / rebuilding, uninstalling the app, trying on real devices and the simulator.

I have a separate issue with the fact that it is ignoring the App Icons set in my Info.plist also, but still recognising the name that I set in there. Not sure how the upgrade can be so buggy since we have less than 2 weeks to actually implement this API change.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>