5

I'm working on a WPF application and would like to capture and log WPF binding errors to the application's logging system. So far, the best I've been able to find when it comes to logging binding errors (or debug information in general) from WPF involves adding an entry to the app.config file.

I realize I could accomplish this by adding my own listener type to the app config as outlined in the link above, but I'd prefer to avoid this if possible, which leads to my question:

How can I programmatically add a trace listener to capture the WPF trace output?

Kyle
  • 6,500
  • 2
  • 31
  • 41
  • 4
    http://stackoverflow.com/questions/4225867/how-can-i-turn-binding-errors-into-runtime-exceptions may have an answer already. – Joey Dec 18 '15 at 17:44
  • @Joey Excellent, `PresentationTraceSources` was what I was looking for. – Kyle Dec 18 '15 at 19:08

0 Answers0