Monthly Archives: January 2009

Overriding RoutedEventArgs.InvokeEventHandler Method

Overriding of the InvokeEventHandler method is a MUST when deriving custom RoutedEvent argument class from a descendant of RoutedEventArgs class! Let’s we want to derive our custom ClickEventArgs class from MouseButtonEventArgs to pass MouseButton information and some additional information on … Continue reading

Posted in Uncategorized | Leave a comment

Generic DataTemplateSelector

Recently I have found nice blog post by Nick Zhebrun on how to create DataTemplateSelector in XAML. It requires two supporting types: GenericDataTemplateSelector deriving from DataTemplateSelector and containing the collection of GenericDataTemplateSelectorItem objects. GenericDataTemplateSelectorItem maps together a data item property … Continue reading

Posted in Uncategorized | Leave a comment

Tricks to add WPF Custom Control badge to Visual Studio 2008 toolbox

When developing WPF Custom Control it could be intricate to add your custom control image to Visual Studio 2008 WPF designer toolbox. I hadn’t found instructions how to do that in MSDN and only fragmentary indications in forums. Strange, I … Continue reading

Posted in Uncategorized | 1 Comment