Derik Whittaker

Syndication

News


Getting the Silverlight Toolkit Controls to work on WP7

As we get closer to the launch of WP7 (Windows Phone 7) more and more developers are starting to play around with the SDK and build out applications.  Since WP7 supports Silverlight 3+ (3+ means it is basically Silverlight 3 w/ some tweaks to work in a multi-touch environment) it is logical to think that you should be able to use the Silverlight Control Toolkit for Silverlight 3.

However if you simply take the binaries from the source on codeplex and try to use them with say the expander control you are going to get runtime errors.  The errors revolve around the GlobalCalendar, but they are very easy to fix (assuming you do not need the global calendar control).

What I did was open up the Silverlight.Controls.Toolkit.sln file (I happened to upgrade my sln to VS2010 but that is not needed) and do the following

  1. Exclude the GlobalCalendar folder from Controls.Toolkilt
  2. Open up the Themes/generic.xml file and comment out the various GlobalCalendar items (items under toolkit:GlobalCalendar) such as
    1. <Style TargetType="toolkit:GlobalCalendar">
    2. <Style TargetType="toolkitPrimitives:GlobalCalendarButton">
    3. <Style TargetType="toolkitPrimitives:GlobalCalendarDayButton">
    4. <Style TargetType="toolkitPrimitives:GlobalCalendarItem">

One you have these items removed simply recompile the source and use the new binaries which are generated.

Now of course this is the easy way out I could have spent the time needed to actually resolve the root cause, but I did not need the GlobalCalendar control at this point so I ‘hit the easy button’.  I am sure that someone else out there can resolve this w/out the need to remove items.

Hope this helps.

Till next time,


Posted 08-09-2010 5:38 AM by Derik Whittaker
Filed under: ,

[Advertisement]

Comments

Lindsay wrote re: Getting the Silverlight Toolkit Controls to work on WP7
on 08-09-2010 3:15 PM

Nice post keep posting

packers and movers delhi wrote re: Getting the Silverlight Toolkit Controls to work on WP7
on 08-13-2010 1:35 AM

I was very tired and finally i got here to work on it, I need this article for my application

Alberto Silva wrote Windows Phone 7 – Experiência para programadores (XXXI)
on 08-13-2010 11:10 AM

Mais uma fornada de links interessantes: 7 Steps to Get You Going on Windows Phone 7 Dev http://www.devfish

baby carriers wrote re: Getting the Silverlight Toolkit Controls to work on WP7
on 08-18-2010 4:30 AM

Our products are all rich-looking and very popular with our other customers, we are sure you will be pleased with them. Our main purpose is to help you get the top toys.

Oleksandr Krakovetskiy blog wrote Дайджест технических материалов #5 (Windows Phone 7)
on 10-27-2010 6:22 AM

Tools, Books, Guides Windows Phone 7 Developer Tools RTM (online installer) , ISO UI Design and Interaction

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)