nav fonctionnelle
continuous-integration/drone/push Build is failing Details

pull/39/head
Leo TUAILLON 2 years ago
parent 524d828570
commit 0675e731d4

@ -76,19 +76,9 @@
<ShellContent <ShellContent
Title="MyRecipesPage" Title="MyRecipesPage"
ContentTemplate="{DataTemplate pages:MyRecipesPage}" ContentTemplate="{DataTemplate pages:MyRecipesPage}"
<<<<<<< HEAD
Route="MyRecipe"/> Route="MyRecipe"/>
</FlyoutItem> </FlyoutItem>
<FlyoutItem Title="ProfilePage"> <FlyoutItem Title="ProfilePage">
=======
Route="MyRecipes" />
<ShellContent
Title="Create Recipe Page"
ContentTemplate="{DataTemplate pages:CreateRecipePage}"
Route="CreateRecipe" />
>>>>>>> c7f7e36bffbc11c12286a9092fbd9b109829a2a1
<ShellContent <ShellContent
Title="ProfilePage" Title="ProfilePage"
ContentTemplate="{DataTemplate pages:ProfilePage}" ContentTemplate="{DataTemplate pages:ProfilePage}"
@ -101,4 +91,11 @@
ContentTemplate="{DataTemplate pages:ForgotPassword}" ContentTemplate="{DataTemplate pages:ForgotPassword}"
Route="ForgotPassword"/> Route="ForgotPassword"/>
</FlyoutItem> </FlyoutItem>
<FlyoutItem>
<ShellContent
x:Name="CreateRecipe"
Title="CreateRecipe"
ContentTemplate="{DataTemplate pages:CreateRecipePage}"
Route="CreateRecipe"/>
</FlyoutItem>
</Shell> </Shell>

@ -17,7 +17,8 @@
HeightRequest="50" HeightRequest="50"
WidthRequest="50" WidthRequest="50"
Source="arrow_back.svg" Source="arrow_back.svg"
HorizontalOptions="Start"/> HorizontalOptions="Start"
Clicked="OnBackButtonClicked"/>
<Label <Label
Text="Create new recipe" Text="Create new recipe"

@ -18,4 +18,8 @@ public partial class CreateRecipePage : ContentPage
{ {
StepList.Children.Add(new StepEntry((uint) StepList.Children.Count() + 1)); StepList.Children.Add(new StepEntry((uint) StepList.Children.Count() + 1));
} }
private async void OnBackButtonClicked(object sender, EventArgs e)
{
await Navigation.PopAsync();
}
} }

@ -60,7 +60,8 @@
<Button <Button
Style="{StaticResource UserButton}" Style="{StaticResource UserButton}"
BackgroundColor="{StaticResource Selected}" BackgroundColor="{StaticResource Selected}"
Text="Add a new recipe"/> Text="Add a new recipe"
Clicked="AddRecipeButtonClicked"/>
</Border> </Border>
</Grid> </Grid>
</ContentPage> </ContentPage>

@ -11,4 +11,9 @@ public partial class MyRecipesPage : ContentPage
{ {
await Navigation.PopAsync(); await Navigation.PopAsync();
} }
private async void AddRecipeButtonClicked(object sender, EventArgs e)
{
await Shell.Current.Navigation.PushAsync(new CreateRecipePage());
}
} }

@ -25,13 +25,11 @@
AlignItems="Center"> AlignItems="Center">
<ImageButton <ImageButton
<<<<<<< HEAD
Source="arrow_back.svg" Source="arrow_back.svg"
Clicked="OnBackButtonClicked"/> Clicked="OnBackButtonClicked"/>
=======
Source="arrow_back.svg"/>
>>>>>>> c7f7e36bffbc11c12286a9092fbd9b109829a2a1
<Label <Label
Style="{StaticResource h1}" Style="{StaticResource h1}"
x:Name="RecipeName" x:Name="RecipeName"

Loading…
Cancel
Save