Extending the Hello Location example for showing nearby events
In Chapter 2, Using Location in Windows Phone 7.5, we saw a simple location example titled "Hello Location" that showed our location information. We will extend this to build a location-enabled events app using the Eventful API.
The following are essential before we start building our location-enabled events app:
An API key is required. Register for one at http://api.eventful.com/signup.
Hands-on with XML parsing using
XElement
. SeeXElement.parse
example in Chapter 3,Using Maps in your Windows Phone App
.
We will use the simple Windows Phone application template to create a new sample application titled Hello Events
, and add a new page to it; so let's begin:
1. Open the Microsoft Visual Studio 2010 Express for Windows Phone IDE, and create a new project by selecting File | New Project. Select the Windows Phone Application template within the Visual C# option; Name it as
HelloEvents
.2. Copy the code and UI from our
Hello Location...