// Constructor public MainPage() { InitializeComponent(); SetUpLocation(); // Calls MainPage_Loaded when this page is loaded this.Loaded += new RoutedEventHandler(MainPage_Loaded); // This is for dynamic loading of RecentPictures DataContext = new RecentViewModel(); }
public UserDetailPage() { InitializeComponent(); DataContext = new RecentViewModel(); }