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 [...]
WebClient/WebRequest threading untangled
January 18th, 2012 by Andreas Hammar — .Net
Tags: windows phone, windows phone 7, wp7dev
Crafting the Øredev Windows Phone app live tile
January 9th, 2012 by Andreas Hammar and Håkan Reis — .Net
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: windows phone, windows phone 7, wp7dev
WP7 getting started (6) – Make your application come alive
November 16th, 2011 by Anders Poulsen — .Net
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: .Net, windows phone 7, wp7dev
WP7 app update and NeutralResourcesLanguage
November 10th, 2011 by Andreas Hammar — .Net, Tips & Tricks
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: .Net, marketplace, windows phone, windows phone 7, wp7dev
WP7 getting started (5) – Using databound controls
November 7th, 2011 by Anders Poulsen — .Net
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: .Net, windows phone 7, wp7dev
WP7 Marketplace Beta – new app downloadable delay
November 3rd, 2011 by Andreas Hammar — .Net, Tips & Tricks
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: .Net, marketplace, windows phone, windows phone 7, wp7dev
Implicit styles in Windows Phone 7
October 18th, 2011 by Andreas Hammar — .Net
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: .Net, blend 4, windows phone, windows phone 7, wp7dev
Fixing WP7 app not starting after project rename
October 12th, 2011 by Andreas Hammar — .Net, Tips & Tricks
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: .Net, tips, tricks, windows phone, windows phone 7, wp7dev
WP7: Link in text with RichTextBox on mango
October 5th, 2011 by Håkan Reis — .Net
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: mango, windows phone, wp7, wp7.5, wp7dev
WP7: Background execution – revisited!
August 31st, 2011 by Håkan Reis — .Net
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: development, windows phone 7, wp7dev
Show a minimized panorama application bar
August 12th, 2011 by Håkan Reis — .Net
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: mango, windows phone 7, wp7, wp7dev
WP7 build error ‘Xap packaging failed’
June 3rd, 2011 by Andreas Hammar — .Net
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 [...]
Loading data during WP7 Page navigation – the slow, the fast and the incremental
April 29th, 2011 by Andreas Hammar — .Net
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: .Net, silverlight, windows phone 7, wp7dev
WP7: Right alignment bug for item templates with grids
April 6th, 2011 by Håkan Reis — .Net
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: .Net, blend, windows phone 7, wp7dev
LowProfileImageLoader with GIF support for WP7
March 31st, 2011 by Andreas Hammar — .Net, Tips & Tricks
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: .Net, development, windows phone 7, wp7dev
