Xamarin.forms: float resource in XAML

Created on 5 Apr 2019  路  1Comment  路  Source: xamarin/Xamarin.Forms

Is there a way to create float resource in XAML? I wanted to define CornerRadius as a resource so I can use it throughout the app, but I was not able to find the type. My current workaround is to assign it from the code to the App's resources after component initialization.

question

Most helpful comment

<x:Single x:Key="myCornerRadius">12.2</x:Single> should do it

>All comments

<x:Single x:Key="myCornerRadius">12.2</x:Single> should do it

Was this page helpful?
0 / 5 - 0 ratings