Ajout des différentes vues ex: homePage

master
Baptiste ARNAUD 6 years ago
parent 458de2f296
commit 31b191eb50

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -84,18 +84,21 @@
<AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" /> <AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" /> <AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\drawable\Apple.png"> <AndroidResource Include="Resources\drawable\Apple.png">
<SubType></SubType> <SubType>
<Generator></Generator> </SubType>
<Generator>
</Generator>
</AndroidResource> </AndroidResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup />
<Folder Include="Resources\drawable\" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\TheGameExtreme\TheGameExtreme.csproj"> <ProjectReference Include="..\TheGameExtreme\TheGameExtreme.csproj">
<Project>{8DE6C881-FF77-4CC4-B8C4-CDEDD9AB13B3}</Project> <Project>{8DE6C881-FF77-4CC4-B8C4-CDEDD9AB13B3}</Project>
<Name>TheGameExtreme</Name> <Name>TheGameExtreme</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <ItemGroup>
</Project> <AndroidResource Include="Resources\drawable\la-rotation-des-engrenages-318-56336.jpg" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

@ -9,11 +9,14 @@
<StackLayout> <StackLayout>
<StackLayout> <StackLayout>
<Label Text="THEGAME" TextColor="DarkBlue" HorizontalTextAlignment="Center" Margin="30"></Label> <Label Text="THEGAME" TextColor="DarkBlue" HorizontalTextAlignment="Center" Margin="30"></Label>
<label Text="test" TextColor="blue" HorizontalTextAlignment="Center" Margin="20"></label>
<ImageButton Source="la-rotation-des-engrenages-318-56336.jpg" Clicked="OpenSetting"></ImageButton>
<Button Text="Solo" Clicked="OpenGame"/>
<Button Text="Multijoueur" Clicked="OpenMultiPlayerMode"/>
<
<Button Text="Connexion en ligne" Clicked=""/>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</ContentView.Content> </ContentView.Content>
</ContentView> </ContentView>

@ -12,13 +12,15 @@ 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();
} }
void OpenGame(object sender, EventArgs args)
{
}
} }
} }

@ -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.view.MultiPlayerMode">
<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.view
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MultiPlayerMode : ContentView
{
public MultiPlayerMode()
{
InitializeComponent();
}
}
}

@ -0,0 +1,21 @@
<?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.view.Setting">
<ContentView.Content>
<StackLayout>
<Label Text="langage" Margin="50" />
<ComboBox Height="23" Name="comboBox1" Width="120">
<ComboBoxItem Content="English"/>
<ComboBoxItem Content="Français"/>
</ComboBox>
<Label Text="Sound"/>
<Switch IsToggled="true"/>
<Label Text="Mode Extreme"/>
<Switch IsToggled="true"/>
</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.view
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Setting : ContentView
{
public Setting()
{
InitializeComponent();
}
}
}
Loading…
Cancel
Save