What is the best way to handle an unhandled exception in a WPF application?
相关问题
- VNC control for WPF application
- how to call a C++ dll from C# windows application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
You can use
DispatcherUnhandledException
:XAML (App.xaml):
Code Behind (App.xaml.cs/vb:
Read up more here. Always do the correct amount of error handling in the first place though. Don't just let errors slip into this method.