Mise en place de la vue Setting

master
Baptiste ARNAUD 6 years ago
parent 9d7348a9bf
commit 49cf2d006b

@ -23,7 +23,6 @@ namespace TheGameExtreme.iOS
public override bool FinishedLaunching(UIApplication app, NSDictionary options) public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{ {
global::Xamarin.Forms.Forms.Init(); global::Xamarin.Forms.Forms.Init();
global::Xamarin.Forms.FormsMaterial.Init();
LoadApplication(new App()); LoadApplication(new App());
return base.FinishedLaunching(app, options); return base.FinishedLaunching(app, options);

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage Visual="Material" <ContentPage Visual="Material"
BackgroundColor="#4d4c4a" Opacity="" BackgroundColor="#4d4c4a"
xmlns="http://xamarin.com/schemas/2014/forms" xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.HomePage"> x:Class="TheGameExtreme.view.HomePage">

@ -1,17 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage <ContentPage BackgroundColor="#4d4c4a"
xmlns="http://xamarin.com/schemas/2014/forms" xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.Settings"> x:Class="TheGameExtreme.view.Settings">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackLayout> <Label HorizontalTextAlignment="Start" Text="langage" Grid.Column="0" Grid.Row="0" FontSize="25" TextColor="Black"/>
<Label Text="langage" Margin="50" /> <Label Text="English" Grid.Column="1" Grid.Row="0" FontSize="25" TextColor="Black"/>
<CheckBox IsChecked="False" Grid.Column="1" Grid.Row="0" x:Name="CBBr"/>
<Label Text="Français" Grid.Column="2" Grid.Row="0" FontSize="25" TextColor="Black"/>
<CheckBox IsChecked="False" Grid.Column="2" Grid.Row="0" x:Name="CBFr"/>
<Label Text="Sound"/> <Label HorizontalTextAlignment="Start" Text="Sound" Grid.Column="0" Grid.Row="1" TextColor="Black" FontSize="25"/>
<Switch IsToggled="true"/> <Switch IsToggled="true" Grid.Column="1" Grid.Row="1" />
<Label Text="Mode Extreme"/> <Label HorizontalTextAlignment="Start" Text="Mode Extreme" Grid.Column="0" Grid.Row="2" TextColor="Black" FontSize="25"/>
<Switch IsToggled="true"/> <Switch IsToggled="True" Grid.Column="1" Grid.Row="2" />
</StackLayout> </Grid>
</ContentPage> </ContentPage>

@ -7,9 +7,16 @@ namespace TheGameExtreme.view
{ {
public partial class Settings : ContentPage public partial class Settings : ContentPage
{ {
public Settings() public Settings()
{ {
InitializeComponent(); InitializeComponent();
if(CBFr.IsChecked == true)
{
} }
} }
}
} }

Loading…
Cancel
Save