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

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

@ -18,4 +18,8 @@ public partial class CreateRecipePage : ContentPage
{
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
Style="{StaticResource UserButton}"
BackgroundColor="{StaticResource Selected}"
Text="Add a new recipe"/>
Text="Add a new recipe"
Clicked="AddRecipeButtonClicked"/>
</Border>
</Grid>
</ContentPage>

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

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

Loading…
Cancel
Save