@ -1,10 +0,0 @@
|
||||
namespace Ohara;
|
||||
|
||||
public partial class NewPage3 : ContentPage
|
||||
{
|
||||
public NewPage3()
|
||||
{
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
namespace Ohara;
|
||||
using Model;
|
||||
using Model.Stub;
|
||||
|
||||
public partial class PageEquipage : ContentPage
|
||||
{
|
||||
public PageEquipage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
List<Equipage> Lequipage = StubEquipage.RecupererEquipage().ToList();
|
||||
|
||||
|
||||
listeEquip.ItemsSource = Lequipage;
|
||||
}
|
||||
private async void Hyperlink_FDD(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageFDD());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Acceuil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage());
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<?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="Ohara.PageFDD"
|
||||
Title="PageFDD"
|
||||
BackgroundColor="#e2edf1">
|
||||
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="2*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="300" />
|
||||
<ColumnDefinition Width="90*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<VerticalStackLayout BackgroundColor="#72a3b3" Grid.Row="0" Grid.Column="0" Spacing="10">
|
||||
|
||||
<Image Source="ohara2.png" HeightRequest="300" HorizontalOptions="Center" >
|
||||
<Image.Clip>
|
||||
<EllipseGeometry Center="150,90" RadiusX="80" RadiusY="80"/>
|
||||
</Image.Clip>
|
||||
</Image>
|
||||
|
||||
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Accueil" Clicked="Hyperlink_Acceuil"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Carte"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Personnages"/>
|
||||
<Button Style="{StaticResource buttonMenu2}" Text="Fruits du démon"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bateaux"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Îles"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Bestiaire"/>
|
||||
<Button Style="{StaticResource buttonMenu}" Text="Équipages" Clicked="Hyperlink_Equip"/>
|
||||
</VerticalStackLayout>
|
||||
<VerticalStackLayout Grid.Row="0" Grid.Column="1" Spacing="40">
|
||||
<Grid BackgroundColor="#72a3b3" Padding="10" ColumnSpacing="50" >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="10*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions >
|
||||
<ColumnDefinition Width="20*"/>
|
||||
<ColumnDefinition Width="25*"/>
|
||||
<ColumnDefinition Width="10*"/>
|
||||
<ColumnDefinition Width="10*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<SearchBar Placeholder="Rechercher..." BackgroundColor="#bfe5ef" Grid.Column="0"/>
|
||||
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="2">
|
||||
<Label Text="Filtrer" HorizontalTextAlignment="Center" />
|
||||
</Frame>
|
||||
|
||||
<Frame CornerRadius="20" BackgroundColor="#bfe5ef" BorderColor="#bfe5ef" Grid.Column="3">
|
||||
<Label Text="Trier" HorizontalTextAlignment="Center" />
|
||||
</Frame>
|
||||
</Grid>
|
||||
|
||||
<CollectionView x:Name="listeFDD" ItemsUpdatingScrollMode="KeepScrollOffset" VerticalScrollBarVisibility="Always" ItemsLayout="VerticalGrid, 4">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid Padding="10" ColumnSpacing="10" RowSpacing="20">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="25*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image
|
||||
Source="{Binding Image}"
|
||||
HeightRequest="300"
|
||||
WidthRequest="300" />
|
||||
|
||||
<Label
|
||||
VerticalOptions="End"
|
||||
Padding="7"
|
||||
HorizontalTextAlignment="Center"
|
||||
HorizontalOptions="Center"
|
||||
Text="{Binding Type}"
|
||||
FontAttributes="Italic"
|
||||
BackgroundColor="#72a3b3"/>
|
||||
<Label
|
||||
VerticalOptions="End"
|
||||
Margin="25"
|
||||
HorizontalOptions="Center"
|
||||
HorizontalTextAlignment="Center"
|
||||
Padding="5"
|
||||
Text="{Binding Nom}"
|
||||
BackgroundColor="#72a3b3"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
</ContentPage>
|
@ -0,0 +1,32 @@
|
||||
namespace Ohara;
|
||||
|
||||
using Model;
|
||||
using Model.Stub;
|
||||
public partial class PageFDD : ContentPage
|
||||
{
|
||||
|
||||
public PageFDD()
|
||||
{
|
||||
|
||||
InitializeComponent();
|
||||
List<FruitDuDemon> fdd = StubFruitDuDemon.RecupererFruit().ToList();
|
||||
|
||||
|
||||
listeFDD.ItemsSource = fdd;
|
||||
}
|
||||
|
||||
private void listeFDD_ScrollToRequested(object sender, ScrollToRequestEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private async void Hyperlink_Acceuil(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new MainPage());
|
||||
}
|
||||
|
||||
private async void Hyperlink_Equip(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new PageEquipage());
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 970 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 555 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 6.9 KiB |