I am creating design app where users can drag and drop controls to some surface.
Some controls in toolbar can contains broken logic and generate exceptions when injected to the surface.
I would like to suppress some unhandled exception comming from the 3rd party controls when they are dropped.
I want to suppress this UI exception and show some kind of popup:
workArea.Dispatcher.UnhandledException += MainContainerDispatcherUnhandledException
Is is possible to handle and suppress based on the source of origin?
Thanks.
You can make use of AppDomain.UnhandledException and in case you recieve it, identify the control that made it happen, and
Hope this helps.