January 2009 Entries

Refactoring the CoolMenu Control – Part 2: Building the ItemContainerGenerator

Part 1: Inheriting from ItemsControl An ItemContainerGenerator is a class that generates the containers for each of the items in an ItemsControl.  At least, that is how things are in WPF.  In Silverlight, this class doesn’t exist.  That’s too bad because there are some methods that we really need.  Most importantly, we need to be able to capture a container for any given item index via the ContainerFromIndex and IndexFromContainer methods. I did some research and found that the Silverlight Toolkit team has already encountered the same issue in their TreeView control.  The Silverlight Toolkit team solved the...

Refactoring the CoolMenu Control – Part 1: Inheriting from ItemsControl

Introduction After receiving some very constructive feedback from Justin Angel on my CoolMenu (View Demo Here) control, I decided to refactor the control to allow for a more flexible developer experience.  I wanted to document my experience with this so that others might benefit.  This series will walk through the various refactorings that I have been working on to make this control better. Inheriting from ItemsControl One of the biggest issues with the control was the fact that it did not inherit from an...

PDANUG: Tonight - The Future of Managed Code

Tuesday, January 13th, 2009 Chris Eargle Topic: The Future of Managed Code Tuesday, January 13th, 2009, is the next meeting of the Pee Dee Area .NET User Group. Newly minted C# MVP, Chris Eargle, will discuss the future of managed code.  How will your code look next year? This presentation is a demonstration of the new capabilities found in C# 4.0 and VB 10.0 using the Visual Studio 2010 CTP. Learn about the new features in each language, how they are converging, and what sets them...

Awarded MVP for Client App Dev!

What a great way to start the new year!  On New Year’s Day, Microsoft announced the recipients of the Microsoft Most Valuable Professional (MVP) award and I was fortunate enough to be one of them!  This is my first time receiving the MVP award and I am very honored to be recognized for my efforts in the Silverlight community!  Thanks to everyone I’ve worked with over the past year, it has been fun!  I’m looking forward to seeing everyone at the MVP Summit!