I am working on a WPF application and would like to capture and log WPF binding errors to the application registration system. So far, the best I've been able to find when it comes to logging binding errors (or debugging information in general) from WPF involves adding an entry to the .config application .
I understand that I can do this by adding my own type of listener to the application configuration, as indicated in the link above, but I would prefer to avoid this if possible, which leads to my question:
How can I programmatically add a trace listener to output the WPF trace output?
source share