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

@ -3,7 +3,7 @@
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<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>
<DefaultDevice>pixel_5_-_api_33_1</DefaultDevice>
</PropertyGroup>

@ -1,17 +1,17 @@
{
"format": 1,
"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": {
"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",
"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",
"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\\",
"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",
"crossTargeting": true,
"fallbackFolders": [

@ -25006,11 +25006,11 @@
"project": {
"version": "1.0.0",
"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",
"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\\",
"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",
"crossTargeting": true,
"fallbackFolders": [

@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "vMdiSc1+yYZdXqHO8vvS1Aw4ovTk9USRxvEIpx0dZVsodI8erEF3LkRbetynExN+6SXraNXLDCnd3LmsAqg4Pg==",
"dgSpecHash": "Y3w0Y+Ey7hhZQ692A3sWO4Tvq09uqTQ0u8HSHrvAkqfCxRFvhorB4m2e447JPeTRbl778JhvAgvs+G5e0QiOgg==",
"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": [
"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",

Loading…
Cancel
Save