Introducing Telerik Patterns & Practices for Silverlight and WPF

by Evan Hutnick | Comments 11

If you’re like me and you enjoy reading developer controls documentation (who doesn’t?), you may have noticed a new addition to the online documentation today for both RadControls for Silverlight and RadControls for WPF. It’s my pleasure to introduce you to a new effort we are launching alongside the Q3 2011 release – Telerik Patterns & Practices:

Telerik Patterns & Practices Node

Our first series for Telerik P&P is in direct response to a customer request, specifically for advice on how to handle an Event-to-Command scenario within their Silverlight application. Since there are more than a few ways to handle that we figured it would be best to step through each as well as provide a complete demo solution with source code for a quick jump-start for anyone who wants more concrete examples. 

The guidance written for Event-To-Command includes the following articles:

  • Overview – Basic setup for the series, getting us ready to explore different options
  • Event-Based – How you would respond to a given event using code-behind and event subscription
  • Blend Option – How to utilize System.Windows.Interactivity and Triggers to enable a basic E-to-C arrangement in an MVVM setup
  • MVVM Light Option – Building upon the Triggers example, demonstrates how MVVM Light additionally enables support for passing event arguments, a must for many scenarios
  • Prism Option – How to accomplish similar using attached behaviors, providing the most flexibility and code re-use within your solution

You can follow the links here for Silverlight and here for WPF, and source code is available for both the Silverlight and WPF versions at the end of the Prism Option article (WPF has slight tweaks for the Prism Option based on framework differences). Otherwise if you just want to dive into the code you can go ahead and download both the Silverlight and WPF versions from our code library.

So let us know what you think! If you have any scenarios you would like to see covered simply drop me a line at Hutnick (at) telerik.com or hit me up on Twitter (@EvanHutnick). Otherwise we’ll be adding to this resource as customer questions make their way through our sales and support teams or as we come across scenarios that we feel need a little extra guidance.

Stay tuned for more!

About the author

Evan Hutnick

Evan Hutnick

works as a Developer Evangelist for Telerik specializing in Silverlight and WPF in addition to being a Microsoft MVP for Silverlight. After years as a development enthusiast in .Net technologies, he has been able to excel in XAML development helping to provide samples and expertise in these cutting edge technologies. You can find him on Twitter @EvanHutnick.

11 Comments

Ben Hayat
Evan, you should certainly include Caliburn.Micro as part of your MVVM options as well, since many people use it and it's an EXCELENT product.
Just my two cents. :-)
..Ben
Evan
@Ben: How did I know you would comment first? :)
Sounds like a good idea, officially adding that to the suggestion box (Evernote for right now) and I'll update this post once it is ready and live on the site.    
Ben Hayat
How did I know you would comment first? :)
That's because I value your posts!!!
..Ben
Sean
Excellent idea... thanks for including Prism!
Love working with the Telerik tools!
Deepak Shakya
If you are thinking of including MVVM frameworks, I think you should consider SimpleMVVMToolkit in codeplex as well. I have been using it and looking at the growth rate of people using it, it would be really helpful for users like myself. 
Congratulations for your third release for this year and looking forward many more in the years to come.
Thanks once again.
Garrett
Absolutely the best idea ever.
Showing several possible methods to accomplishing the same task, and in a clear and tutorial-like way is absolutely something we need more of.
Dave Navarro
Hello,
Thanks for adding this section to our documentation! Could you also add a section for MEF? I use MEF without Prism and often it seems that MEF is left out of the examples when actually MEF is included in Visual Studio and Prism is not.
MEF examples would be great! Thanks!
Evan
Hey all,
So right now I've seen requests for Caliburn.Micro, MEF, and SimpleMVVMToolkit, so I'll work those up in the next round of updates to these articles.  Right now we have a short week due to the Thanksgiving holiday and next week is release webinars week, so those should be able to work into the sprint starting December 5th.
Thanks for the feedback everyone, keep it coming!
Dave
Fantastic idea. Tremendous! Thank you.
Daniel
I vote for Caliburn.Micro also!
Tom
When wil the next update come to the Patterns & Practices? Will they only be updated when new releases come out?

Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by Evan Hutnick - or - read latest articles in Developer Tools