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
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-09 09:11 UTC by blitzillu
Modified: 2016-09-12 09:32 UTC (History)
3 users (show)

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


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


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:
Status:
RESOLVED INVALID

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:

  <ContentPage.Icon>
    <OnPlatform x:TypeArguments="FileImageSource">
      <!-- Asset catalog doesn't work -->
      <OnPlatform.iOS>menu</OnPlatform.iOS>
      <!-- Resources folder does work -->
      <!--<OnPlatform.iOS>hamburger.png</OnPlatform.iOS>-->
    </OnPlatform>
  </ContentPage.Icon>

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 2.3.1.118 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

EnvironmentInfo:
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055
Xamarin   4.2.0.676 (3189770)
Xamarin.Android   7.0.0.15 (f4db8a5)
Xamarin.iOS   10.0.0.4 (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.