Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 3
This is part 3 in a 3 part tutorial for creating a notes application using Silverlight and Windows Phone 7. The previous articles can be read here
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 1
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 2
Currently our application can display a list of notes, and create and save a new note. The last piece of the puzzle is to allow the user to delete an existing note. To accomplish this all we really need to do is add an application bar button to the details page, remove it from the working items list, and save it to isolated storage.
- Add the appbar.save.rest.png image in C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Icons to the Images folder in the project, and set it’s ‘Build Action’ to Content’, and it’s ‘Copy to Output Directory’ proerpty to ‘Copy if newer’.
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 2
This is part 2 in a 3 part tutorial for creating a notes application using Silverlight and Windows Phone 7. The other articles can be read here
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 1
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 3
In part one of the tutorial we created the project, added a new Note class to serve as our model, and added a StorageHelper class to help us manage IsolatedStorage. The next step is to add support for adding a note to the app. We’ll keep it simple and just use a button on the main page’s application bar to add a note. When a user clicks the add note button on the main page, a new Windows Phone 7 page will load, which will enable the user to enter a note title and note text. They’ll also be able to save the note, or cancel the save, which will return them to the main page.
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 1
This is part 1 in a 3 part tutorial for creating a notes application using Silverlight and Windows Phone 7. The other articles can be read here
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 2
Windows Phone 7 Tutorial – Creating a simple notes app with Silverlight Part 3
Admittedly a bouncing ball on Windows Phone 7 isn’t all that useful, so I decided to create a sample application that could do a little more than draw a ball or say ‘hello world’. Ideally I wanted to work with some of the core concepts on the phone, such as lists, navigation and the application bar. Additionally I wanted a Windows Phone 7 app that persisted it’s data, which meant working with Isolated Storage. Obviously this calls for a note-taking app…after all who doesn’t love taking notes? Notes are only second to bouncing balls in my book.
To keep the scope of the app small and focused, I wanted the note app to do only the following
- View a list of notes
- Add a note
- Delete a note
Windows Phone 7 – List of Tutorials and Resources
Following up on yesterday’s post on Windows Phone 7 development, here’s a few of the tutorials and guides I’ve been looking at the past few days. There’s a lot of info to digest so I’ll be adding to this post as I come across more resoucres.
Tutorials and Samples
-
Scott Guthrie’s Tutorial
http://weblogs.asp.net/scottgu/archive/2010/03/18/building-a-windows-phone-7-twitter-application-using-silverlight.aspx -
Introduction to Silverlight on Windows Phone 7 – Creating a list application
http://10rem.net/blog/2010/03/15/building-your-first-silverlight-for-windows-phone-application -
Introduction to XNA
http://mobile.tutsplus.com/tutorials/windows/introduction-to-xna-on-windows-phone-7/ -
Channel 9 Developer Training Kit
http://channel9.msdn.com/learn/courses/WP7TrainingKit/ -
Code Samples for Windows Phone
http://msdn.microsoft.com/en-us/library/ff431744(VS.92).aspx -
Charles Petzold’s Free ebook
http://blogs.msdn.com/b/microsoft_press/archive/2010/03/15/free-ebook-programming-windows-phone-7-series-draft-preview.aspx
Windows Phone 7 and Silverlight – Getting started with a Bouncing Ball
The beta of the developer tools for Windows Phone 7 was released last week. I was curious to see how different/easy it was to develop for this platform so I decided to convert my old SL 3 bouncing ball app, done AGES ago, to Silverlight 4 and Windows Phone 7. The process was pretty painless and even allowed me to add a few features:
1. Install the tools from http://www.microsoft.com/downloads/details.aspx?FamilyID=c8496c2a-54d9-4b11-9491-a1bfaf32f2e3&displaylang=en if you haven’t already
2. Create a new Windows Phone Application (from templaes: Visual C# – Silverlight for Windows Phone – Windows Phone Application)
Silverlight 3 – Simple consumption of a WCF Service
Last night we were *supposed* to watch Monsters vs. Aliens but unfortunately those plans went out the window once I realized I was missing a credit card. I managed to find it eventually but since we had missed the movie I figured I’d spend some time playing around with Silverlight 3 and WCF to see if there were any big changes in the beta (other than the obvious new RIA Services). I’ve used WCF in past silverlight projects and for the most part there were no real changes in Silverlight 3. A quick rundown of the steps involved:
- Add a new Silverlight project
- Add a new Linq to Sql class (Add New Item – Linq to Sql Classes) and add a table from an existing database to the designer (e.g. Orders from Northwind)
- Add a new WCF Service to the web project and modify your service implemntation to return a list of orders. (Add New Item – WCF Service). Note that this is a standard WCF service and not a Silverlight-enabled WCF Service.
- Modify the endpoint element in your web.config so that it used basicHttpBinding instead of wsHttpBinding (Silverlight only supports basic binding)
- Add a datagrid to your MainPage.xaml
- Add a Service Reference to the Silverlight project for brevity’s sake. Ensure the ServiceReferences.ClientConfig has the proper values for the endpoint (especially the address and contract attributes). David Betz has a good overview of WCF and assembly reuse in Silverlight.
- Modify the MainPage.xaml.cs to load the appropriate data on the load event. For example:
Getting started with Silverlight 3 – Hello Bouncing Ball
I’ve been playing with Silverlight 3 lately and thought I’d post a quick guide on getting started. Note that once installed you can only develop silverlight 3 applications since VS doesn’t support multi-targeting for Silverlight apps.
Also, in order to start the initial install you’ll have to uninstall any previous betas of Blend you may have installed. I had Expression Blend 2.5 installed and received this: Beta and preview versions of Microsoft Expression Blend must be uninstalled before installation can continue. Don’t worry about Silverlight 2, it will automatically uninstall Silverlight 2 for you. All of the links below are available at http://silverlight.net/getstarted/silverlight3/default.aspx, I’ve just added direct links to the files.
- Download and install Silverlight 3 Tools (which will also install the SDK and runtime) : Silverlight 3 Toolkit March 2009.msi. Installs to C:Program FilesMicrosoft Silverlight
- Download and install Expression Blend 3 Preview : Blend_Trial_en.exe. Installs to Installs to C:Program FilesMicrosoft Expression
- Download and install the Silverlight 3 Toolkit : Silverlight3_Tools.exe. Installs to C:Program FilesMicrosoft SDKsSilverlightv3.0ToolkitMarch 2009
- Download and install .NET RIA Services preview : RiaServices.msi. Installs to C:Program FilesMicrosoft SDKsRIA Services
Siverlight 3 Videos : http://silverlight.net/learn/videocat.aspx?cat=12#sl3
Silverlight 3 Labs : http://silverlight.net/learn/labs.aspx
Big news day from Mix 09
Lots of news coming out of Mix 09….
ASP.NET MVC Released
Scott Guthrie recently posted a great (and free) tutorial from his upcoming book here. Not a whole lot of changes from RC2, but you’ll have to uninstall previous versions obviously. You can get the installer here. Note that some addins can cause problems during the install (notably Azure tools), but there’s a hotfix available for it.
Silverlight
Silverlight 3 beta announced : Getting started with Silverlight 3. Tim Heuer has a pretty detailed post regarding the new featuresLooks like there’s a ton of features in the works, new codecs (H.264, AAC,MPEG-4), improved graphics support (3D transform effects). hardware acceleration, and even standalone silverlight apps. Interestingly the download for the silverlight 3 install is smaller than the current silverlight 2 install.

