You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="ex_Localization2.MainPage">
|
|
|
|
<ScrollView>
|
|
<VerticalStackLayout
|
|
Padding="30"
|
|
Spacing="25">
|
|
|
|
<Picker Title="{Binding PickerText, Source={StaticResource appResources}}"
|
|
SelectedItem="{Binding Culture, Source={StaticResource appResources},Converter={StaticResource cultureInfo2StringConverter}}">
|
|
<Picker.ItemsSource>
|
|
<x:Array Type="{x:Type x:String}">
|
|
<x:String>en</x:String>
|
|
<x:String>fr-FR</x:String>
|
|
<x:String>ca-ES</x:String>
|
|
<x:String>es-ES</x:String>
|
|
<x:String>it</x:String>
|
|
</x:Array>
|
|
</Picker.ItemsSource>
|
|
</Picker>
|
|
|
|
<Entry Placeholder="{Binding EntryPlaceholder, Source={StaticResource appResources}}" />
|
|
<Button Text="{Binding ButtonText, Source={StaticResource appResources}}" />
|
|
<HorizontalStackLayout>
|
|
<Label Text="{Binding LabelText, Source={StaticResource appResources}}" />
|
|
<Label x:Name="resultLabel"/>
|
|
</HorizontalStackLayout>
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
|
|
</ContentPage>
|