Bug 30928 - FontSize in xaml doesn't accept strings
Summary: FontSize in xaml doesn't accept strings
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-06-08 22:38 UTC by Erik Renaud
Modified: 2015-08-06 01:06 UTC (History)
5 users (show)

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:

Description Erik Renaud 2015-06-08 22:38:42 UTC
When I add the FontSize attribute to a label in a xaml page, I get a xamlparseexception if I set it to a string (that Tiny cannot be converted to a double).

According to this page, it should work

<package id="Xamarin.Forms" version="" targetFramework="portable45-net45+win8+wp8+wpa81" userInstalled="true" />

<Label Text="{Binding Description}" LineBreakMode="MiddleTruncation" FontSize="Tiny"/>

The Label is located in a datatemplate of a custom control.

Comment 1 Stephane Delcroix 2015-06-09 04:42:10 UTC
allowed values for FontSize are:
- a double
- one of the NamedSize (Default,Micro,Small,Medium or Large)

anything else results in an exception.
Comment 2 Atin 2015-08-06 01:06:40 UTC
As per comment#1, changing the status to VERIFIED