Bug 47627 - Setting Label.FormattedText on UWP has no effect
Summary: Setting Label.FormattedText on UWP has no effect
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-22 12:13 UTC by David Britch
Modified: 2017-05-24 14:45 UTC (History)
3 users (show)

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


Attachments
Sample (166.41 KB, application/zip)
2016-11-22 12:13 UTC, David Britch
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 ANSWERED

Description David Britch 2016-11-22 12:13:54 UTC
Created attachment 18594 [details]
Sample

I've created a basic sample for using Azure Search from Xamarin.Forms and it's revealed a problem with setting Label.FormattedString on UWP. The sample builds Label.FormattedString using Spans, and these are correctly displayed on iOS and Android. However, on UWP, despite setting Label.FormattedString, the output isn't respecting the BackgroundColor property being set on a Span.

Repro steps:
1. Go to the Suggestions page.
2. Enter the string "Mon" in the search bar.

Result: Search suggestions are returned from Azure Search and displayed in the ListView without hit highlighting on UWP.

Expected result: Search suggestions are returned from Azure Search and displayed in the ListView with hit highlighting on UWP.

Sample attached.