Geeks With Blogs

A Picture of Me

David Turner, MCPD
MCPD - Enterprise Applications 3.5

David Turner, MCTS
Windows Forms Applications 3.5
ASP.NET Applications 3.5
WCF Applications 3.5
ADO.NET Applications 3.5
Administering TFS 2010

View David Turner's profile on LinkedIn

MCP Virtual Business Card
View my MCP Profile

David Turner blog

The Silverlight Toolkit for Windows Phone adds some great extra controls for Windows Phone 7, one gotcha that I ran into was that the DatePicker Application Bar icons don’t show up unless you include them in your project. The problem is that your DatePicker ends up looking like this:


Tim Heuer mentions this in his blog post about the Silverlight Toolkit for WP7, and as he says, it is documented in the source code:


So the problem is that the icons can’t be referenced from the Silverlight Toolkit Assembly, and the solution is that you have to add them to you project in the ‘well known’ / pre-defined location of a top level folder in your project called Toolkit.Content, and you must make sure to mark the icons with a Build Action of  ‘Content’ otherwise it wont work:


The result is that your DatePicker will now look like this:


Posted on Friday, December 10, 2010 11:17 AM WP7 | Back to top

Comments on this post: Windows Phone 7 DatePicker gotcha

# re: Windows Phone 7 DatePicker gotcha
Requesting Gravatar...
Thank you!!!
Searched for this.
Left by Mikhail on May 11, 2011 8:26 PM

# re: Windows Phone 7 DatePicker gotcha
Requesting Gravatar...
how to change background color of date picker in this page...
Left by satish on Jul 29, 2013 3:08 PM

Your comment:
 (will show your gravatar)

Copyright © David Turner | Powered by: