I’ve considered ReSharper a must-have for Visual Studio for many years, and their live templates are code snippets on steroids. Here I share with you my simple but effective template for generating properties. What it does is add the backing field in camelCase (with an underscore) matching your public name written in PascalCase. All you [...]
ReSharper live template for an INPC property
February 13th, 2012 by Andreas Hammar — .Net, Tips & Tricks
Tags: .Net, windows phone, windows phone 7
WebClient/WebRequest threading untangled
January 18th, 2012 by Andreas Hammar — .Net
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: 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 Getting started (4) – Displaying data from webservice
November 3rd, 2011 by Anders Poulsen — .Net
This is the fourth 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 store and retrieve view states between application deactivation and activation is available [...]
Tags: .Net, windows phone 7
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
WP7 getting started (3) – Lifecycle management
November 1st, 2011 by Anders Poulsen — .Net
This is the third 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 created a simple app for collecting feedback on how a presentation went is available here. Application [...]
Tags: .Net, windows phone 7
WP7 getting started (2) – A simple application
October 31st, 2011 by Anders Poulsen — .Net
This is the second 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 about installing the tools is available here. Idea for an app The app I’d like to create [...]
Tags: .Net, windows phone 7
WP7 getting started (1) – Installing tools
October 31st, 2011 by Anders Poulsen — .Net
This is the first 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 purpose is both to help others get started but also to show how simple it really is, to get [...]
Tags: .Net, windows phone 7
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
Debugging Picture Viewer App Connect on WP7
September 28th, 2011 by Andreas Hammar — .Net
The 7.5 update for Windows Phone 7, codenamed “Mango” has finally been released to the public and adds a ton of new features both for end users as well as developers. One of these features is called App Connect. App Connect can put your app in selected places within the OS and make your app [...]
Tags: .Net, emulator, windows phone 7
Storing double.NaN in a WP7 SQLCE database
September 23rd, 2011 by Andreas Hammar — .Net, Tips & Tricks
Summary double.NaN gives me update issues (ChangeConflictException) in SQL Compact, my fallback was to set the value to zero instead: double.IsNaN(value.Altitude) ? 0 : value.Altitude where ‘Alt’ is the property on my SQLCE entity object. Of course NaN is not the same as zero – but that does not matter to me. Background For a [...]
Tags: .Net, sqlce, windows phone 7
