public EventDetailsViewModel() { if (IsInDesignMode) { Event = new Event() { Id = "17", Date = "7.9.2011", Description = "This is just a dummy event.", Kind = "Workshop", Location = "San Francisco", Title = "This is the dummy title.", Contact = "John Doe", Link = "http://demo.com", Speakers = new List<Contact>() { new Contact() { Name = "Peter Friese", Bio = "A really nice and alround together guy.", Mail = "*****@*****.**", Role = "Software Architect" }, new Contact() { Name = "Heiko Behrens", Bio = "CEO of BeamApp", Mail = "*****@*****.**", Role = "CEO" } } }; } else { } // this message handler will update the view model during navigation events Messenger.Default.Register<NavigationMessage>(this, (action) => { if (action.ViewModelName.Equals("EventDetailsViewModel")) { Event _event = (Event) action.Payload["event"]; this.Event = _event; } } ); }
public void LoadData(ContentProviderResultCallback resultCallback, Event e) { httpWebRequest = HttpWebRequest.CreateHttp("http://www.itemis.de/language=de/~xml.applause/" + e.Id); httpWebRequest.BeginGetResponse(new AsyncCallback(FetchData), resultCallback); }