예제 #1
0
        public ProfileView()
        {
            var     app  = Application.Current as App;
            Profile user = app.User;

            _displayProfilePageViewModel = new DisplayProfilePageViewModel(user);
            BindingContext = _displayProfilePageViewModel;
            InitializeComponent();
        }
예제 #2
0
 //TO display a specific profile and not the current users' profile
 public ProfileView(Profile page)
 {
     _displayProfilePageViewModel = new DisplayProfilePageViewModel(page);
     BindingContext = _displayProfilePageViewModel;
     InitializeComponent();
 }