예제 #1
0
파일: Events.cs 프로젝트: kangaroo/moon
		public static UnmanagedEventHandler CreateCursorPositionChangedEventHandlerDispatcher (CursorPositionChangedEventHandler handler)
		{
			return SafeDispatcher ( (sender, calldata, closure)
						=> handler (NativeDependencyObjectHelper.FromIntPtr (closure),
							    new CursorPositionChangedEventArgs (calldata)) );
		}
예제 #2
0
파일: Events.cs 프로젝트: ynkbt/moon
 public static UnmanagedEventHandler CreateCursorPositionChangedEventHandlerDispatcher(CursorPositionChangedEventHandler handler)
 {
     return(SafeDispatcher((sender, calldata, closure)
                           => handler(NativeDependencyObjectHelper.FromIntPtr(closure),
                                      new CursorPositionChangedEventArgs(calldata))));
 }