Category Archives: Mini-Tutorial

Fast Switching and Page State in Mango

Mango From Scratch Mango introduces fast application switching.  To implement this feature a new stage in the lifecycle has been added: Dormant.  Applications are put in the dormant state when the user navigates forward, away from the application (e.g., using … Continue reading

Posted in Data, Essentials, Mango, Mini-Tutorial, WindowsPhone | 5 Comments

Managing Resources with Reactive Extensions

Reactive Extensions While Reactive Extensions will clean up after itself, it is still your responsibility to manage limited resources, and to dispose of  any unmanaged resources. You can, however, use a variant on the using statement with Observables.

Posted in Data, Linq, Mini-Tutorial, Reactive | Tagged | 6 Comments

Managing the Back Stack

Mango From Scratch In a previous posting, I discussed creating Reminders.  One little known feature of reminders is that you can click on the Reminder to return to the original application (the application in which you set the Reminder).  For … Continue reading

Posted in Essentials, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 2 Comments

Persisting an image

Windows Phone From Scratch In our Full Stack program we need to take a snapshot and persist it to isolated storage, for retrieval at a later time.  This posed an interesting question: how do you put an image into a … Continue reading

Posted in Data, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 23 Comments

The Full Stack–Accidentally Pair Programming and Writing Unit Tests

In this episode of The Full Stack, Jesse and Jon continue their reboot of the windows phone client project. Having set up an MVVM application and decided on using a repository pattern on the phone that mirrors the server’s repository, … Continue reading

Posted in Data, Essentials, Full Stack, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 2 Comments

Reactive Extensions–FromAsync

Reactive Programming I’ve been struggling with getting my head around the exact relationship between Rx’s approach to asynchronous programming and the traditional Begin/End pattern common in .NET programming. With the help of Paul Betts I created a side by side … Continue reading

Posted in Linq, Mini-Tutorial, Reactive | Tagged | 10 Comments

LINQ Deferred Execution–Oops!

A LINQ Tutorial Deferred execution can be a lifesaver with LINQ but it can have a downside as well. In this example we set up a LINQ query and then iterate through the results twice. The output may not be … Continue reading

Posted in Data, Linq, Mini-Tutorial | Tagged | Comments Off on LINQ Deferred Execution–Oops!

Best Practices For Local Databases

Mango From Scratch I’ve recently written two posts about coding for SQL CE in Mango (the next release of Windows Phone).  Sean McKenna, who knows more about this than anyone walking the planet, dropped me an email to remind me … Continue reading

Posted in Data, Essentials, Linq, Mango, Mini-Tutorial, Patterns & Skills, WindowsPhone | Tagged | 11 Comments

Coming In Mango–Local DB Part 2: Relationships

On May 10 I posted about the upcoming addition of SQL Server Compact Edition (CE) in Windows Phone Mango.  At that time, I showed how to create the DataContext object and how to store and retrieve “flat” data. In this … Continue reading

Posted in Data, Linq, Mini-Tutorial, WindowsPhone | Tagged | 8 Comments

Coming in Mango–Query the Contacts List

Mango From Scratch Coming in Mango is the ability to query the Contact List and retrieve considerably more information than was available previously.  In addition to the EmailAddress Chooser Task and the PhoneNumberChooserTask Mango will include an AddressChooserTask.  In addition, … Continue reading

Posted in Data, Mango, Mini-Tutorial, WindowsPhone | Tagged | 8 Comments

Coming in Mango–Sql Server CE

Mango From Scratch With the forthcoming Mango release of Windows Phone (tools to be released this month) you can store structured data in a Sql Server Compact Edition (CE) database file in isolated storage (called a local database). You don’t … Continue reading

Posted in Data, Linq, Mango, Mini-Tutorial, WindowsPhone | Tagged | 19 Comments

Hot and Cold Observables in Rx

Reactive Programming Continuing my intermittent series in Rx, today I take a look at Hot vs. Cold Observables in the Reactive Extensions Library.The distinction, in a nutshell, is this: Hot observables are like a river – you can dip into … Continue reading

Posted in Mini-Tutorial, Reactive | Tagged | 1 Comment