protected override void OnAppearing() { var user = new SQLiteHelper().GetUserProfile(); BindingContext = new MasterMenuViewModel() { UserName = user.UserName, ProfilePicture = user.ProfilePicture }; ProfilePicture.Source = ImageHelper.ToImageSource(user.ProfilePicture); }
public MasterMenuPage() { InitializeComponent(); MenuItems.ItemsSource = MasterMenuViewModel.GetMasterMenuItems(); }