Assuming I have a Strings.xml file with this content:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Click Me!</string>
<string name="app_name">DroidTools</string>
</resources>
Or a fr.xml and a en.xml for bilingual Apps. How would I get the same reusability and concept with the .xaml files. (Xamarin.Forms)
In my current context (code below), I would like to change Courriel by a variable where I can set Courriel or Email according to the language. The same would apply to Mot de passe / Password.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Klaim.MainPage">
<ContentPage.Content>
<StackLayout VerticalOptions="Center" HorizontalOptions="Center">
<Image Source="logo_magikweb.png" />
<Entry Keyboard="Email" Placeholder="Courriel" />
<Entry Keyboard="Password" Placeholder="Mot de passe" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
We use Xamarin.Forms 1.3 (pre-release) if this affects anything related to resources.