Bug 59068 - IMarkupExtension not working
Summary: IMarkupExtension not working
Status: IN_PROGRESS
Alias: None
Product: Live Player
Classification: Xamarin
Component: Mobile App (show other bugs)
Version: 1.0.507
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-27 09:23 UTC by Martin Jørgensen
Modified: 2017-11-29 01:01 UTC (History)
2 users (show)

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


Attachments
Reproduction of issue (337.72 KB, application/x-zip-compressed)
2017-09-01 14:11 UTC, Martin Jørgensen
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 for Bug 59068 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
IN_PROGRESS

Description Martin Jørgensen 2017-08-27 09:23:39 UTC
The "most simple" IMarkupExtension does not work in Live Player.


The MarkupExtension:
------------------------
  public class Localizer : IMarkupExtension
  {
    public string IDS { get; set; }

    public object ProvideValue(IServiceProvider serviceProvider)
    {
      return IDS;
    }
  }


The xaml:
------------------------
<Label Text="{local:Localizer IDS='IDS_Hello'}"/>


I guess it is related to bug 58105 (https://bugzilla.xamarin.com/show_bug.cgi?id=58105), but I thought that filled bug was related to accessing image resources from PCL.
But it seems like it is related to IMarkupExtension.
Comment 1 James Montemagno [MSFT] 2017-08-31 20:16:07 UTC
Could you attach a small sample, this will help us repro exactly what you have and add to our test suite.
Comment 2 Martin Jørgensen 2017-09-01 14:11:57 UTC
Created attachment 24523 [details]
Reproduction of issue

Added project to reproduce issue.