Popup_qui_marche_pas
Anthony RICHARD 2 years ago
commit 3f40573350

@ -1,23 +0,0 @@
<?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="Stim.HeaderView">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Grid.Row="0" >
<Button Background="transparent" Grid.Column="0" Grid.Row="0" FontSize="40" Text="Home" WidthRequest="325" Clicked="goToMainPage"></Button>
</Border>
<Border Grid.Column="1" Grid.Row="0" >
<Button Background="transparent" Grid.Column="1" Grid.Row="0" FontSize="40" Text="Mes suivis" WidthRequest="325" Clicked="goToFollowPage"></Button>
</Border>
<Border Grid.Column="2" Grid.Row="0" >
<Button Background="transparent" Grid.Column="2" Grid.Row="0" FontSize="40" Text="Profil" WidthRequest="325" Clicked="goToProfilPage"></Button>
</Border>
</Grid>
</ContentView>

@ -1,21 +0,0 @@
namespace Stim;
public partial class HeaderView : ContentView
{
public HeaderView()
{
InitializeComponent();
}
private async void goToMainPage(object sender, EventArgs e)
{
await Navigation.PushModalAsync(new MainPage());
}
private async void goToFollowPage(object sender, EventArgs e)
{
await Navigation.PushModalAsync(new FollowPage());
}
private async void goToProfilPage(object sender, EventArgs e)
{
await Navigation.PushModalAsync(new ProfilPage());
}
}

@ -9,11 +9,11 @@ public partial class MainPage : ContentPage
private async void Button_Clicked(object sender, EventArgs e) private async void Button_Clicked(object sender, EventArgs e)
{ {
await Navigation.PushModalAsync(new DetailledPage()); await Navigation.PushAsync(new DetailledPage());
} }
private async void goToMainPage(object sender, EventArgs e) private async void goToMainPage(object sender, EventArgs e)
{ {
await Navigation.PushModalAsync(new MainPage()); await Navigation.PushAsync(new MainPage());
} }
} }

@ -48,19 +48,10 @@
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Update="HeaderView.xaml.cs">
<DependentUpon>HeaderView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Update="DetailledPage.xaml"> <MauiXaml Update="DetailledPage.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</MauiXaml> </MauiXaml>
<MauiXaml Update="HeaderView.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…
Cancel
Save