Mono.Events.CreateRoutedEventArgsEventHandlerDispatcher C# (CSharp) Method

CreateRoutedEventArgsEventHandlerDispatcher() public static method

public static CreateRoutedEventArgsEventHandlerDispatcher ( EventHandler handler ) : UnmanagedEventHandler
handler EventHandler
return UnmanagedEventHandler
		public static UnmanagedEventHandler CreateRoutedEventArgsEventHandlerDispatcher (EventHandler <RoutedEventArgs> handler)
		{
			return SafeDispatcher ( (sender, calldata, closure)
						=> { object o = NativeDependencyObjectHelper.FromIntPtr (closure);
						     handler (o,
							      NativeDependencyObjectHelper.FromIntPtr (calldata) as RoutedEventArgs ?? new RoutedEventArgs (calldata, false) { OriginalSource = o }); } );
		}
Events