WebClient/WebRequest threading untangled

Andreas Hammar

WebRequest and its baby sister WebClient behave differently regarding what thread they return on. This is a short post to really clarify what returns where. Summary WebClient will always return on the UI thread if called from the UI thread WebRequest will always return on a background thread The investigation To test this I created [...]

Tags: , ,

Crafting the Øredev Windows Phone app live tile

Andreas Hammar Håkan Reis

In November last year, it was once again time for the 2011 Øredev developer conference. For the 2010 conference, we at Jayway created a schedule app with a social twist – a puzzle game that you played by talking to other participants. When updating the app this year, we decided to make use of the [...]

Tags: , ,

WP7 getting started (6) – Make your application come alive

Anders Poulsen

This is the fifth in a series of blog posts describing how to get started with Windows Phone 7 development. It is written based on my own experience getting started with Windows Phone 7 development. The previous entry, where I demonstrated how to use databound controls in xaml based webservice is available here. The purpose of [...]

Tags: , ,

WP7 app update and NeutralResourcesLanguage

Andreas Hammar

The Windows Phone Marketplace was updated with new features in July 2011, one has to do with default language. The previous process to submit an app required you to define the default language when submitting the app, the new version checks the default language in the uploaded xap. The problem An app created before July [...]

Tags: , , , ,

WP7 getting started (5) – Using databound controls

Anders Poulsen

This is the fifth in a series of blog posts describing how to get started with Windows Phone 7 development. It is written based on my own experience getting started with Windows Phone 7 development. The previous entry, where I demonstrated how to retrieve and data from a REST based webservice is available here. In that [...]

Tags: , ,

WP7 Marketplace Beta – new app downloadable delay

Andreas Hammar

Have you seen the new (since fall 2011) ways to publish a Windows Phone app to Marketplace? In addition to regular publishing, you can now publish as private beta or targeted. Neither will make the app discoverable in the Marketplace, Beta is time limited and does not include the full certification requirements. MSDN has a [...]

Tags: , , , ,

Implicit styles in Windows Phone 7

Andreas Hammar

Coming from WPF and Silverlight for the desktop into Silverlight for Windows Phone, which is Silverlight 3, can leave you longing for some features – one that I missed was Implicit Styles. But, with the Mango (7.1) release of WP7 we now have Silverlight 4! What are implicit styles? A style that has a target [...]

Tags: , , , ,

Fixing WP7 app not starting after project rename

Andreas Hammar

If your Windows Phone 7 project isn’t starting at all – you’re not even hitting App.xaml.cs, you’ve probably renamed the app project. Fix: Set the startup object on the app project’s properties page In the .csproj file, this corresponds to the SilverlightAppEntry element: <SilverlightAppEntry>PhotoDiary.App</SilverlightAppEntry> I would call it a bug, that you cannot rename a [...]

Tags: , , , , ,

WP7: Link in text with RichTextBox on mango

Håkan Reis

While the first iteration of Windows Phone was based on Silverlight 3 the upcoming release, mango, is based on Silverlight 4. That means a lot of new functionality like implicit styling and and rich text controls. Especially the last was interesting as it gives you a lot more control over the displayed text. What I [...]

Tags: , , , ,

WP7: Background execution – revisited!

Håkan Reis

The dust from what was presented at Mix11 has long settled and the mango released had been packaged. The tools are with us and we are just waiting for the update to officially reach the phones. So I will do a quick view on background execution in the light of a post I did a [...]

Tags: , ,

Show a minimized panorama application bar

Håkan Reis

The first version of WP7 design style guide, specified that the panorama should not include an application bar. In Mango, Microsoft have reconsidered, and you can find it in the hubs there. Additionally, if you look at the application bar in the games hub there is a new way to display it: empty and minimized [...]

Tags: , , ,

WP7 build error ‘Xap packaging failed’

Andreas Hammar

Today my Windows Phone 7 solution started giving me one single build error: Xap packaging failed. Object reference not set to an instance of an object. Short story A file had been removed from disk but not from the solution. Always set your sample data files to Build action: None. Long story The missing file [...]

Tags: , ,

Loading data during WP7 Page navigation – the slow, the fast and the incremental

Andreas Hammar

To show data to the user you have to load data and bind data – but which one is the slow part? Answer: It depends on the nature of your data and the complexity of your UI. This post will show you that data can be loaded on the UI thread or the background thread, [...]

Tags: , , ,

WP7: Right alignment bug for item templates with grids

Håkan Reis

If you have done a few templates with some of the content aligned right and other content aligned left in a grid. You have probably bumped into this. It took quite some time to solve. The problem does not exist in WPF or later versions of Silverlight, but since Windows Phone 7 is based on version 3 it’s [...]

Tags: , , ,

LowProfileImageLoader with GIF support for WP7

Andreas Hammar

LowProfileImageLoader I’ve recently bumped into the need to display images from various RSS feeds in a Windows Phone 7 app. UI binding and loading of images can easily degrade the performance of any wp7 app, which led me to the excellent LowProfileImageLoader (LPIL) by David Anson. The LPIL attaches a property, UriSource, to an Image [...]

Tags: , , ,