diff --git a/MCTG/Views/MyProfil.xaml b/MCTG/Views/MyProfil.xaml
index 91ecccc..c3cf21d 100644
--- a/MCTG/Views/MyProfil.xaml
+++ b/MCTG/Views/MyProfil.xaml
@@ -9,26 +9,26 @@
-
-
-
-
-
-
-
+
+
-
-
-
@@ -77,7 +77,6 @@
-
diff --git a/MCTG/Views/MyProfil.xaml.cs b/MCTG/Views/MyProfil.xaml.cs
index 9baaaed..fc58946 100644
--- a/MCTG/Views/MyProfil.xaml.cs
+++ b/MCTG/Views/MyProfil.xaml.cs
@@ -10,7 +10,7 @@ namespace Views;
public partial class MyProfil : ContentPage
{
public MasterManager MasterMgr => (App.Current as App).MasterMgr;
- public User user => (App.Current as App).CurrentUser;
+ public User CurrentUser => (App.Current as App).CurrentUser;
@@ -38,4 +38,14 @@ public partial class MyProfil : ContentPage
int receivingIndex = PriorityList.IndexOf(receivingElement);
PriorityList.Insert(receivingIndex + 1, draggedElement);
}
+
+ private void OnMyRecipeClicked(object sender, EventArgs e)
+ {
+ Navigation.PushModalAsync(new MyPosts());
+ }
+
+ private void OnAddRecipeClicked(object sender, EventArgs e)
+ {
+ Navigation.PushModalAsync(new AddRecipe());
+ }
}
\ No newline at end of file
diff --git a/MCTG/Views/ReturnButton.xaml b/MCTG/Views/ReturnButton.xaml
index dccf42f..ee6a871 100644
--- a/MCTG/Views/ReturnButton.xaml
+++ b/MCTG/Views/ReturnButton.xaml
@@ -16,7 +16,8 @@
+ Aspect="Center" Scale="0.7"
+ Clicked="OnClickedReturn"/>
diff --git a/MCTG/Views/ReturnButton.xaml.cs b/MCTG/Views/ReturnButton.xaml.cs
index ac42ca4..276a14d 100644
--- a/MCTG/Views/ReturnButton.xaml.cs
+++ b/MCTG/Views/ReturnButton.xaml.cs
@@ -15,5 +15,10 @@ public partial class ReturnButton : ContentView
{
get => (bool)GetValue(NeedReturnProperty);
set => SetValue(NeedReturnProperty, value);
- }
-}
+ }
+
+ public void OnClickedReturn(object sender, EventArgs e)
+ {
+ Navigation.PopModalAsync();
+ }
+}