Ajout de la barre de navigation

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent e79d070406
commit c47b279d3b

@ -4,11 +4,20 @@
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:local="clr-namespace:Stim" xmlns:local="clr-namespace:Stim"
Shell.FlyoutBehavior="Disabled"> xmlns:views="clr-namespace:Stim"
FlyoutBehavior="Disabled"
<ShellContent BackgroundColor="{StaticResource Gray600}"
Title="Home" >
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage"/>
<FlyoutItem>
<ShellContent Title="Accueil"
ContentTemplate="{DataTemplate views:MainPage}"
Route="MainPage"/>
<ShellContent Title="Suivis"
ContentTemplate="{DataTemplate views:FollowPage}"
Route="FollowPage"/>
<ShellContent Title="Profil"
ContentTemplate="{DataTemplate views:ProfilPage}"
Route="ProfilPage"/>
</FlyoutItem>
</Shell> </Shell>

@ -2,8 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage 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"
x:Class="Stim.FollowPage" x:Class="Stim.FollowPage"
xmlns:HeaderView="clr-namespace:Stim" Title="Suivis">
Title="FollowPage">
<ScrollView> <ScrollView>
<Grid BackgroundColor="#495057"> <Grid BackgroundColor="#495057">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
@ -17,7 +16,6 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<HeaderView:HeaderView Grid.Column="1" Margin="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/>

@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage 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:HeaderView="clr-namespace:Stim"
x:Class="Stim.MainPage" x:Class="Stim.MainPage"
Title="STIM" Title="Accueil"
Background="black"> Background="black">
<ScrollView>
<ScrollView>
<Grid BackgroundColor="#495057"> <Grid BackgroundColor="#495057">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
@ -20,8 +18,6 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<HeaderView:HeaderView Grid.Column="1" Margin="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="0" Grid.Row="1"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="0" Grid.Row="1"/>

@ -2,8 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage 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"
x:Class="Stim.ProfilPage" x:Class="Stim.ProfilPage"
xmlns:HeaderView="clr-namespace:Stim" Title="Profil">
Title="ProfilPage">
<ScrollView> <ScrollView>
<Grid BackgroundColor="#495057"> <Grid BackgroundColor="#495057">
@ -18,7 +17,6 @@
<RowDefinition Height="*"/> <RowDefinition Height="*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<HeaderView:HeaderView Grid.Column="1" Margin="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/> <VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/>

@ -362,7 +362,7 @@
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" /> <Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" /> <Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
<Setter Property="Shell.NavBarHasShadow" Value="False" /> <Setter Property="Shell.NavBarHasShadow" Value="False" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" /> <Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray600}, Dark={StaticResource Black}}" />
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> <Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" /> <Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" /> <Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />

Loading…
Cancel
Save