public ProfileView() { var app = Application.Current as App; Profile user = app.User; _displayProfilePageViewModel = new DisplayProfilePageViewModel(user); BindingContext = _displayProfilePageViewModel; InitializeComponent(); }
//TO display a specific profile and not the current users' profile public ProfileView(Profile page) { _displayProfilePageViewModel = new DisplayProfilePageViewModel(page); BindingContext = _displayProfilePageViewModel; InitializeComponent(); }