1
I’m trying to use resource aquifers in my Xamarin Forms project but I don’t know how to reference the file string. Ex: <Label Text="MyApp.Resources.MinhaString" />
.
Someone knows how to do?
1
I’m trying to use resource aquifers in my Xamarin Forms project but I don’t know how to reference the file string. Ex: <Label Text="MyApp.Resources.MinhaString" />
.
Someone knows how to do?
1
Follow the procedure described in https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/ and access the resource file using the Translateextension class.
Ex.: <Button Text="{i18n:TranslateExtension Text=AddButton}" />
or to be less verbose hide the word Extension <Button Text="{i18n:Translate Text=AddButton}" />
Browser other questions tagged xamarin xamarin-forms xaml
You are not signed in. Login or sign up in order to post.