Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Problem with Font = Font.SystemFontOfSize(30) Xamarin release 1.2.2.6243

$
0
0

Today I installed the latest release of Xamarin Forms. It resulted in one problem with Grid.RowDefinitions with a single row. This can be worked around by removing the RowDefinitions altogether, but there is bigger problem with this piece of code:

_advisedSpeed = new CustomLabel
{
VerticalOptions = LayoutOptions.Center,
HorizontalOptions = LayoutOptions.Center,
TextColor = Color.White,
Font = Font.SystemFontOfSize(30)
),
};

It will crash with the exception:

{System.MissingMethodException: Method not found: 'Xamarin.Forms.Font Xamarin.Forms.Font.SystemFontOfSize(Double)'.
at SmartCarPhone.Views.SpeedLayout.InitLabels()
at SmartCarPhone.Views.SpeedLayout..ctor()
at SmartCarPhone.Views.CustomizedLane.InitImageSources()
at SmartCarPhone.Views.CustomizedLane..ctor()
at SmartCarPhone.Views.MainPage.ShowRoad()
at SmartCarPhone.Views.MainPage..ctor()
at SmartCarPhone.Views.RootPage.SetMainPage()
at SmartCarPhone.Views.RootPage.b__0()}

It worked fine on Xamarin.Forms version 1.1.1.6206, but now I see the above two problems.

Please help
Robert


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>