Bug 44137 - Image from asset catalog isn't showing up, when master detail page is used
Summary: Image from asset catalog isn't showing up, when master detail page is used
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-09-09 09:11 UTC by blitzillu
Modified: 2016-09-12 09:32 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Master detail page with asset catalog (278.70 KB, application/zip)
2016-09-09 09:11 UTC, blitzillu

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description blitzillu 2016-09-09 09:11:16 UTC
Created attachment 17392 [details]
Master detail page with asset catalog

I took the XF sample MasterDetailPageNavigation and changed this on MasterPage.xaml:

    <OnPlatform x:TypeArguments="FileImageSource">
      <!-- Asset catalog doesn't work -->
      <!-- Resources folder does work -->

The image from the asset catalog isn't showing up. Only the resource folder does work.

Steps to reproduce:

1. Create master detail page
2. Add asset catalog
3. Reference the image set from the asset catalog
4. Build & run
5. Icon isn't displayed
Comment 1 Parmendra Kumar 2016-09-09 17:14:33 UTC
I have checked this issue with latest Cycle 8 build with Xamarin.Forms and I am also facing same issue as mentioned in bug description.

Screencast: http://www.screencast.com/t/znPQj9AFZ

IDELog: https://gist.github.com/Parmendrak/966b77b4447cdd488c208dcdf33bd3d3
BuildOutput: https://gist.github.com/Parmendrak/e9cb9a92d7f2a420ae85ec756a594b98
DebugLog: https://gist.github.com/Parmendrak/e862ee2d8782de132f7da7f1fbf5bbb4

Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Xamarin (3189770)
Xamarin.Android (f4db8a5)
Xamarin.iOS (d1ee3ba)
Comment 2 Samantha Houts [MSFT] 2016-09-09 17:16:54 UTC
FileImageSource does not support Asset Catalogs. The image must be a file. As Page.Icon is a FileImageSource, it is not possible to use an Asset Catalog in this context.

Warm regards,
Xamarin.Forms Team
Comment 3 blitzillu 2016-09-12 09:32:27 UTC
Thanks for clarifying this. But it is interesting, that for ToolbarItem.Icon this is working. It is also a FileImageSource.