Expression Blend, Silverlight, wpf

XamlResource.com

Since today XamlResource.com is officially in beta. Its purpose is to create a platform to find and share resources for Silverlight and WPF, resources in the form of Xaml. Have a look around and if you run into issues, please let us know at xaml@hotmail.nl.   Beta 1: In Beta 1 only a few of the final categories are supported: Colors; Resources of type SolidColorBrush Gradients; Resources of type GradientBrush Color sets; 2 to 5 resources of type SolidColorBrush Vectors; Resources of type StreamGeometry This list will be extended with Styles, Themes, Templates and Shaders.   Future plans: Adding tags…

Expression Blend, Silverlight, wpf

MVVM Project and Item Templates

Intro This is the first in a series of small articles about what is new in Silverlight 4 and Expression Blend 4. The series is build around a open source demo application SilverAmp which is available on http://SilverAmp.CodePlex.com.   MVVM Project and Item Templates Expression Blend has got a new project template to get started with a Model-View-ViewModel project  easily. The template provides you with a View and a ViewModel bound together. It also adds the ViewModel to the SampleData of your project. It is available for both Silverlight and Wpf. To get going, start a new project in Expression…

wpf

Monitoring routed events in WPF

A few days ago I wanted to monitor all routed events fired in my application. Because I am running an XBAP application inside a browser windows, Snoop wasn’t very helpful (it usually is). Because all routed events are basically the same, you can handle them all with one singe event handler. Using the EventManger it is possible to get all routed events and register a class handler for every one of them. The code below is a stripped down version of the code I’ve got implemented. When loaded, it gets all events. Than it loops to them and assigns a…