Where do event handlers (not dealing with windows controls) go in a WPF project

Jul 26 2012 10:34 AM

I am trying to convert a C# console application into a WPF application.  However, I can't seem to figure out where to put my event handlers.  In the console application I just had them in Main() so I thought I could register them in MainWindow() in the WPC application, but that doesn't seem to work.  To clarify, this is an event handler for something other than the windows controls, specifically one from FiddlerCore.  Thanks for your help.




Answers (1)