0

I am trying to add HockeyApp to my WPF app, but cannot find Application.OnLaunched ? Any thought appreciated thanks!

https://support.hockeyapp.net/kb/client-integration-windows-and-windows-phone/hockeyapp-for-applications-on-windows#crash-reporting

For platforms other than UWP, you need to add the following line of code at the end of the OnLaunched(LaunchActivatedEventArgs e) Method (in App.xaml.cs)

sunpochin
  • 328
  • 1
  • 4
  • 17

2 Answers2

4

It seems, that KB page is incorrect. There's no OnLaunched method in WPF Application class. The nearest equivalent will be OnStartup.

Note, that Silverlight Application differs from WPF one - you need to handle Startup event, because there's no virtual OnStartup method there.

Dennis
  • 37,026
  • 10
  • 82
  • 150
1

it is located in the system.windows.application

Dwight
  • 673
  • 7
  • 15