Tag Archives: Windows Phone

Help make Microsoft developer technologies better!

Follow devkeydet on Twitter

Ron Jacobs just blogged about how .NET developers can provide feature feedback and vote on WCF/WF features.


Many Microsoft product teams are doing this nowadays. It still surprises me how many .NET developers don’t realize these feature voting sites exist. In addition to WF/WCF, I am aware of these:























Let me know in the comments if I’ve missed any.  I’ll add them.

OQuery – A fluent API to build OData url queries sans LINQ

Yesterday, I blogged about a solution to compose OData / WCF Data Service queries using LINQ for situations where LINQ enabled client libraries don’t exist (i.e. JavaScript and Windows Phone 7).


The post is all about using LINQPad as a tool to write your LINQ queries, then using the feature in LINQPad that gives you the url query translation.  Well today, a new MSDN Code Callery project just popped up called OQuery that offers another approach that doesn’t require using an external tool such as LINQPad:


Here’s the description from the project page:

“OQuery is a library which gives you a fluent style interface for building OData Url Fragments in javascript or C#.
Neither Javascript or Silverlight for WP7 support LINQ and so this library in those cases.”

What are you waiting for?  Go check it out!

Follow devkeydet on Twitter

Data Services (OData) Client for Windows Phone 7 and LINQ


The WCF Data Services Team released a client library to make it easier to interact with OData services from Windows Phone 7. 


The major caveat (and bummer) with the library is that “LINQ support in the client library has been removed as the core support is not yet available on the phone platform.”  I have a tip/trick for LINQ lovers like me that will allow you to still use LINQ query syntax to compose your query (kind/sorta).  A tool I find useful to when writing OData queries on Windows Phone 7 is LINQPad.  I use the tool to write LINQ queries against my data service, then get the url syntax query translated for me:


Once I get my LINQ query right, I just paste the http string into my app.  I’m still surprised about how many people aren’t aware of LINQPad.  You must check it out if you use LINQ in your day to day coding (which I am sure most of you do now).  You can learn more about using LINQPad against OData services (amongst many other uses) from the product site:


NOTE: This tip/trick is very useful when querying OData services from JavaScript as well.  Here are two helpful posts on using jQuery to interact with an OData service:



Hope this helps save you some time!

Follow devkeydet on Twitter

Code Coverage for Silverlight and Windows Phone

As part of building my WP7 app, I spent a fair amount of time trying to get code coverage working for my unit tests. I tried a number of different approaches including using the Silverlight Unit Test Framework and NUnit + dotCover. I finally landed on an approach that worked for me using the unit testing capabilities in Visual Studio 2010. Since this is a much confused topic with very little info on the web on how to successfully get working for Silverlight/Windows Phone apps, I published a screencast on the subject.  I hope you find it useful.

Direct link:


From http://en.wikipedia.org/wiki/Code_coverage:

"Code coverage is a measure used in software testing. It describes the degree to which the source code of a program has been tested."

In this screencast, you will learn how to get code coverage for your Silverlight and/or Windows Phone ViewModels through unit testing.  You can learn more about code coverage in Visual Studio 2010 from:


Get Microsoft Silverlight

SHAMELESS PLUG: My First WP7 Marketplace App

UPDATE: A great majority of people never look at an app unless it is free.  Even though the manual rate lookup feature of my app is free through trial mode and never times out, I decided to publish an identical version of the app with trial mode behavior called “Free Per Diem Rates” so the app is more discoverable to those who won’t bother looking at an app unless they see FREE.

I’ve been working on an app for Windows Phone 7 in my spare time.  The app is for business travelers whose employer’s policy for travel expenses is based on US Government per diem rates.  It’s been live in Marketplace for a couple weeks now, but I have been iteratively improving it.  Here is the description from Marketplace:

Look up US Government per diem rates. The manual lookup functionality is FREE and works in trial mode without expiration. GSA rates are currently available in the application. DoD and State Department rates are coming soon. Paid users get the following features:

  • Look up rates using phone location
  • Look up rates using text search
  • Save found rates to favorites

App link: http://bit.ly/perdiemwp7

Free version: (no link yet…search for “Free Per Diem” in marketplace)

Here is a short video walkthrough of it running in the emulator:

Big Windows Phone 7 Announcements Today!

You will be able to watch the announcements live today starting at 9:30 eastern from:


If you prefer not to watch the video, but just check in on what’s being announced, check out engadget’s liveblog:


Don’t forget to download the free tools from:


Once you have the tools, you will surely want some free training:


Once you are spun up, you’d be silly not enter my team’s app contest: