public static CreateExceptionRoutedEventArgsEventHandlerDispatcher ( EventHandler |
||
handler | EventHandler |
|
return | UnmanagedEventHandler |
public static UnmanagedEventHandler CreateExceptionRoutedEventArgsEventHandlerDispatcher (EventHandler <ExceptionRoutedEventArgs> handler)
{
return SafeDispatcher ( (sender, calldata, closure)
=> { object o = NativeDependencyObjectHelper.FromIntPtr (closure);
ExceptionRoutedEventArgs args = ExceptionRoutedEventArgs.FromErrorEventArgs (calldata);
args.OriginalSource = o;
handler (o, args); } );
}