The WPF client library handles unhandled exceptions, includes your view models and can help you display error pages and take screenshot of the active window.
This page expects that you have installed the WPF nuget packaged and configured it. If you have not, read the configuration page.
An error page can optionally be displayed. When a new error is detected, codeRR will now display this:
To activate and configure the feature, add the following line(s) below the other codeRR configuration lines in
// Add a leave feedback text area. Err.Configuration.UserInteraction.AskUserForDetails = true; // Ask user if an report may be uploaded. Err.Configuration.UserInteraction.AskUserForPermission = true; // Allow user to get notified once you have corrected the issue. Err.Configuration.UserInteraction.AskForEmailAddress = true;
By default, codeRR marks all exceptions as handled in WPF, which means that your application will not crash when an exception is detected.
If you want to prevent that, use the following setting.
The context collections are included in the WPF library.
codeRR collects information from all open forms using reflection.
The information includes all controls and their configuration (position, content, visibility etc)
Screenshots can be activated by one of the following configuration lines:
You will see the following under the incident in your codeRR server:
codeRR collects information from all viewModels in the open forms.