Ajout de la TabBar personnalisée

pull/11/head
Rémi LAVERGNE 2 years ago
parent 5514313b92
commit 2e9462e6eb

Binary file not shown.

@ -4,60 +4,39 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:GameAtlas.Views" xmlns:views="clr-namespace:GameAtlas.Views"
Shell.NavBarIsVisible="False"
Shell.FlyoutBehavior="Disabled"> Shell.FlyoutBehavior="Disabled">
<TabBar> <Shell.Resources>
<Tab Title="Connexion"> <ResourceDictionary>
<ShellContent <Style x:Key="BaseStyle" TargetType="Element">
Title="Connexion" <Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray1000}" />
ContentTemplate="{DataTemplate views:PageConnexion}" <Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray300}" />
Route="Views/PageConnexion" /> <Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Gray1000}" />
</Tab> <Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource White}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="{StaticResource Gray300}"/>
<Tab Title="Inscription"> </Style>
<ShellContent <Style TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" />
Title="Connexion" <Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" />
ContentTemplate="{DataTemplate views:PageInscription}" </ResourceDictionary>
Route="Views/PageInscription" /> </Shell.Resources>
</Tab>
<TabBar>
<Tab Title="Accueil"> <ShellContent
<ShellContent Title="Accueil"
Title="Accueil" Icon="home"
ContentTemplate="{DataTemplate views:PageAcceuil}" ContentTemplate="{DataTemplate views:PageAcceuil}"
Route="Views/PageAcceuil" /> Route="PageAccueil" />
</Tab> <ShellContent
Title="Parcourir"
<Tab Title="Profil"> Icon="console"
<ShellContent ContentTemplate="{DataTemplate views:PageParcourir}"
Title="Profil" Route="PageParcourir" />
ContentTemplate="{DataTemplate views:PageProfil}" <ShellContent
Route="Views/PageProfil" /> Title="Profil"
</Tab> Icon="account"
ContentTemplate="{DataTemplate views:PageProfil}"
<Tab Title="Jeu"> Route="PageProfil" />
<ShellContent
Title="Jeu"
ContentTemplate="{DataTemplate views:PageJeu}"
Route="Views/PageJeu" />
</Tab>
</TabBar> </TabBar>
<FlyoutItem>
<ShellContent
Title="Parcourir"
ContentTemplate="{DataTemplate views:PageParcourir}"
Route="Views/PageParcourir" />
</FlyoutItem>
<FlyoutItem>
<ShellContent
Title="Jeu"
ContentTemplate="{DataTemplate views:PageJeu}"
Route="Views/PageJeu" />
</FlyoutItem>
</Shell> </Shell>

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen> <IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net7.0-android</ActiveDebugFramework> <ActiveDebugFramework>net7.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Xiaomi 2201117SY (Android 12.0 - API 31)</ActiveDebugProfile> <ActiveDebugProfile>Pixel 5 - API 33 (1) (Android 13.0 - API 33)</ActiveDebugProfile>
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup> <SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup>
<DefaultDevice>pixel_5_-_api_33_1</DefaultDevice> <DefaultDevice>pixel_5_-_api_33_1</DefaultDevice>
</PropertyGroup> </PropertyGroup>

@ -1,17 +1,17 @@
{ {
"format": 1, "format": 1,
"restore": { "restore": {
"C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj": {} "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj": {}
}, },
"projects": { "projects": {
"C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj": { "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj", "projectUniqueName": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj",
"projectName": "GameAtlas", "projectName": "GameAtlas",
"projectPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj", "projectPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj",
"packagesPath": "C:\\Users\\remib\\.nuget\\packages\\", "packagesPath": "C:\\Users\\remib\\.nuget\\packages\\",
"outputPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\obj\\", "outputPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"crossTargeting": true, "crossTargeting": true,
"fallbackFolders": [ "fallbackFolders": [

@ -25006,11 +25006,11 @@
"project": { "project": {
"version": "1.0.0", "version": "1.0.0",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj", "projectUniqueName": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj",
"projectName": "GameAtlas", "projectName": "GameAtlas",
"projectPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj", "projectPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj",
"packagesPath": "C:\\Users\\remib\\.nuget\\packages\\", "packagesPath": "C:\\Users\\remib\\.nuget\\packages\\",
"outputPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\obj\\", "outputPath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\obj\\",
"projectStyle": "PackageReference", "projectStyle": "PackageReference",
"crossTargeting": true, "crossTargeting": true,
"fallbackFolders": [ "fallbackFolders": [

@ -1,8 +1,8 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "vMdiSc1+yYZdXqHO8vvS1Aw4ovTk9USRxvEIpx0dZVsodI8erEF3LkRbetynExN+6SXraNXLDCnd3LmsAqg4Pg==", "dgSpecHash": "Y3w0Y+Ey7hhZQ692A3sWO4Tvq09uqTQ0u8HSHrvAkqfCxRFvhorB4m2e447JPeTRbl778JhvAgvs+G5e0QiOgg==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM\\GameAtlas\\GameAtlas\\GameAtlas.csproj", "projectFilePath": "C:\\Users\\remib\\OneDrive\\Bureau\\1A\\SAE2.01-IHM_-_Remi_LAVERGNE_-_Yvan_CALATAYUD\\GameAtlas\\GameAtlas\\GameAtlas.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
"C:\\Users\\remib\\.nuget\\packages\\communitytoolkit.maui\\5.0.0\\communitytoolkit.maui.5.0.0.nupkg.sha512", "C:\\Users\\remib\\.nuget\\packages\\communitytoolkit.maui\\5.0.0\\communitytoolkit.maui.5.0.0.nupkg.sha512",
"C:\\Users\\remib\\.nuget\\packages\\communitytoolkit.maui.core\\5.0.0\\communitytoolkit.maui.core.5.0.0.nupkg.sha512", "C:\\Users\\remib\\.nuget\\packages\\communitytoolkit.maui.core\\5.0.0\\communitytoolkit.maui.core.5.0.0.nupkg.sha512",

Loading…
Cancel
Save