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.