Click here to Skip to main content
15,308,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I don't find main function nowhere in WPF. So,I have no idea to handle exception centrally in WPF. In winform it is quite easy since main function is in program.cs.
Any help will be greatly appreciated.
Updated 8-Nov-15 18:17pm

You can handle the DispatcherUnhandledException event of your application.

You can see an example for it here:

how to use centralized in try and catch operation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900