view + multilangage

master
Baptiste ARNAUD 6 years ago
parent da3db0cd21
commit 99546c0065

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="TheGameExtreme.Rules">
<ContentView.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!" />
</StackLayout>
</ContentView.Content>
</ContentView>

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace TheGameExtreme
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Rules : ContentView
{
public Rules()
{
InitializeComponent();
}
}
}

@ -22,6 +22,10 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Remove="AppRessources.config" /> <None Remove="AppRessources.config" />
<None Remove="view\Image\thegame.jpg" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="view\Image\thegame.jpg" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Update="AppRessource.resx"> <EmbeddedResource Update="AppRessource.resx">
@ -32,6 +36,9 @@
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessources-br.Designer.cs</LastGenOutput> <LastGenOutput>AppRessources-br.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Update="Rules.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="view\AppResources.resx"> <EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="view\AppResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator> <Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>AppResources.Designer.cs</LastGenOutput> <LastGenOutput>AppResources.Designer.cs</LastGenOutput>

@ -6,8 +6,31 @@
mc:Ignorable="d" mc:Ignorable="d"
x:Class="TheGameExtreme.view.HomePage"> x:Class="TheGameExtreme.view.HomePage">
<ContentView.Content> <ContentView.Content>
<StackLayout Padding="20">
<StackLayout> <StackLayout>
<Label Text="The Game" HorizontalTextAlignment="Center" /> <Label TextColor="Blue" Text="The Game" HorizontalTextAlignment="Center" />
</StackLayout>
<StackLayout Margin="20">
<Label TextColor="Blue" Text="Nombre de joueurs"></Label>
<ListView HeightRequest="230" x:Name="lstViewNbPlayer" >
<ListView.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>1</x:String>
<x:String>2</x:String>
<x:String>3</x:String>
<x:String>4</x:String>
<x:String>5</x:String>
</x:Array>
</ListView.ItemsSource>
</ListView>
<Label TextColor="Blue" Text="Pseudo des joueurs"></Label>
<Entry x:Name="NomPseudo"></Entry>
<Button Text="Jouer" x:Name="BtnPlay" TextColor="Blue" Margin="100"></Button>
</StackLayout>
</StackLayout> </StackLayout>
</ContentView.Content> </ContentView.Content>
</ContentView> </ContentView>

@ -4,6 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xamarin.Forms; using Xamarin.Forms;
using Xamarin.Forms.Xaml; using Xamarin.Forms.Xaml;
@ -12,9 +13,16 @@ namespace TheGameExtreme.view
[XamlCompilation(XamlCompilationOptions.Compile)] [XamlCompilation(XamlCompilationOptions.Compile)]
public partial class HomePage : ContentView public partial class HomePage : ContentView
{ {
ListView NbplayersSelected = new ListView();
public HomePage() public HomePage()
{ {
InitializeComponent(); InitializeComponent();
} }
async void OnRulesButtonClicked(object sender, EventArgs e)
{
}
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Loading…
Cancel
Save