diff --git a/Pages/MorePage.xaml b/Pages/MorePage.xaml
index 5387f99..90910d5 100644
--- a/Pages/MorePage.xaml
+++ b/Pages/MorePage.xaml
@@ -15,14 +15,14 @@
ColumnSpacing="30">
+ x:Name="ProfileImage"/>
diff --git a/Pages/MorePage.xaml.cs b/Pages/MorePage.xaml.cs
index abe4f20..8f5bcb3 100644
--- a/Pages/MorePage.xaml.cs
+++ b/Pages/MorePage.xaml.cs
@@ -2,8 +2,14 @@ namespace ShoopNCook.Pages;
public partial class MorePage : ContentPage
{
- public MorePage()
+ public MorePage(): this("Adom Shafi", ImageSource.FromFile("default_profile_picture.png"))
{
- InitializeComponent();
}
+
+ public MorePage(string userName, ImageSource userImage)
+ {
+ InitializeComponent();
+ ProfileImage.Source = userImage;
+ ProfileName.Text = userName;
+ }
}
\ No newline at end of file
diff --git a/Views/HeadedButton.xaml.cs b/Views/HeadedButton.xaml.cs
index e8691ed..3558072 100644
--- a/Views/HeadedButton.xaml.cs
+++ b/Views/HeadedButton.xaml.cs
@@ -1,5 +1,3 @@
-using System.Xml.Linq;
-
namespace ShoopNCook.Views;
public partial class HeadedButton : ContentView