Power BI

Content by Charles Sterling

WPF Event handlers in Visual Studio 2008 Beta2

In my earlier post Visual Studio not creating event handlers for WPF applications i indicated C#didn’t wire up event handlers… (But VB did and still does).  In Visual Studio 2008 Beta2 (or a build that is close it) this functionality has been added to the XAML editor -and will now wire up event handlers.-Yeah!

All you have to do to get this working is add the control you want the event handler for then in the XAML editor start typing the event you want a handler for (unlike earlier builds their is no need to recompile the project after you add the control.  The image is displaying several different events for the button control.

Then either select the handler you want to use or create a new one.