résolution des conflicts

dictionnaire
Vianney JOURDY 2 years ago
commit 2e70e240e6

@ -5,32 +5,39 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MangaMap"
xmlns:Views="clr-namespace:MangaMap.Views"
Shell.FlyoutBehavior="Flyout"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate Views:homePage}"
<TabBar>
<ShellContent
Title="Home"
ContentTemplate="{DataTemplate Views:homePage}"
Route="MainPage" />
<ShellContent
Title="Inscription"
ContentTemplate="{DataTemplate Views:signUpPage}" />
<ShellContent
Title="Inscription"
ContentTemplate="{DataTemplate Views:signUpPage}" />
<ShellContent
Title="Connection"
ContentTemplate="{DataTemplate Views:loginPage}" />
<ShellContent
Title="Connection"
ContentTemplate="{DataTemplate Views:loginPage}" />
<ShellContent
Title="Paramètres"
ContentTemplate="{DataTemplate Views:settingsPage}" />
<ShellContent
Title="Paramètres"
ContentTemplate="{DataTemplate Views:settingsPage}" />
<ShellContent
Title="Liste"
ContentTemplate="{DataTemplate Views:listPage}" />
<ShellContent
Title="Liste"
ContentTemplate="{DataTemplate Views:listPage}" />
<ShellContent
Title="Fiche Exemple"
ContentTemplate="{DataTemplate Views:ficheAnime}" />
</TabBar>
<FlyoutItem>
<ShellContent
Title="Fiche Exemple"
ContentTemplate="{DataTemplate Views:ficheAnime}" />
</FlyoutItem>
</Shell>

@ -48,6 +48,21 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<AndroidResource Remove="Component\**" />
<AndroidResource Remove="NewFolder\**" />
<Compile Remove="Component\**" />
<Compile Remove="NewFolder\**" />
<EmbeddedResource Remove="Component\**" />
<EmbeddedResource Remove="NewFolder\**" />
<MauiCss Remove="Component\**" />
<MauiCss Remove="NewFolder\**" />
<MauiXaml Remove="Component\**" />
<MauiXaml Remove="NewFolder\**" />
<None Remove="Component\**" />
<None Remove="NewFolder\**" />
</ItemGroup>
<ItemGroup>
<None Remove="Resources\Images\logo.png" />
<None Remove="Resources\Images\test.jpg" />
@ -73,6 +88,9 @@
<MauiXaml Update="Resources\Theme\DarkTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\Composants\StyleBouton.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\homePage.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
@ -90,9 +108,4 @@
</MauiXaml>
</ItemGroup>
<ItemGroup>
<Folder Include="Component\" />
<Folder Include="NewFolder\" />
</ItemGroup>
</Project>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MangaMap.Views.Composants.StyleBouton">
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Red"
Source="test2.png"
Clicked="ButtonIsPressed"/>
</ContentView>

@ -0,0 +1,14 @@
namespace MangaMap.Views.Composants;
public partial class StyleBouton : ContentView
{
public StyleBouton()
{
InitializeComponent();
}
private async void ButtonIsPressed(object sender, EventArgs e)
{
await Shell.Current.Navigation.PushAsync(new ficheAnime());
}
}

@ -3,7 +3,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MangaMap"
xmlns:modeles="clr-namespace:MangaMap.Model"
x:Class="MangaMap.Views.homePage">
x:Class="MangaMap.Views.homePage"
xmlns:views="clr-namespace:MangaMap.Views.Composants">
<ContentPage.BindingContext>
<modeles:Manager/>
@ -46,11 +48,7 @@
HorizontalOptions="Center">
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Red"
Source="test2.png"
/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
@ -58,13 +56,9 @@
Source="test.jpg"
/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Blue"/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Purple"/>
<views:StyleBouton/>
</HorizontalStackLayout>
@ -72,22 +66,13 @@
Spacing="100"
HorizontalOptions="Center">
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Purple"
/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Green"/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Gray"/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Yellow"/>
<views:StyleBouton/>
</HorizontalStackLayout>
@ -95,22 +80,12 @@
Spacing="100"
HorizontalOptions="Center">
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Red"
/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Orange"/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Blue"/>
<views:StyleBouton/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Purple"/>
<views:StyleBouton/>
</HorizontalStackLayout>
@ -119,27 +94,18 @@
Spacing="100"
HorizontalOptions="Center">
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Purple"
/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Red"
/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Gray"/>
<views:StyleBouton/>
<ImageButton
Style="{StaticResource ImageAnime}"
BackgroundColor="Yellow"/>
<views:StyleBouton/>
</HorizontalStackLayout>
<ListView x:Name="a1" ItemsSource="{Binding Utilisateurs}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>

Loading…
Cancel
Save