Bug 7165 - Setting value on MT.D.StyledStringElement with 3.0 initialization syntax does nothing.
Summary: Setting value on MT.D.StyledStringElement with 3.0 initialization syntax does...
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.99.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-09-13 19:10 UTC by bryan costanich
Modified: 2014-08-28 21:25 UTC (History)
3 users (show)

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

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 bryan costanich 2012-09-13 19:10:37 UTC
this works: 
	new StyledStringElement ("Test Caption", "Test Value")
this doesn't:
	new StyledStringElement ("Calendar",
		() => { return; } ) 
		{ Value = "some value whatever." }
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-09-18 08:25:41 UTC
This is because the default UITableViewStyle used by StyledStringElement does not show the detailed text.

You can subclass StyledStringElement and set the style property yourself, or use the StyledStringElement(string, string, UITableViewCellStyle) ctor to specify one when you create the StyledStringElement (you probably want the Value1 style).