コード例 #1
0
 public static API_InputSimulator mouse_MoveTo_Wpf <T>(this API_InputSimulator inputSimulator, T uiElement)
     where T : System.Windows.UIElement
 {
     return((API_InputSimulator)Threading_ExtensionMethods.wpfInvoke(
                uiElement,
                () => {
         try
         {
             var point = uiElement.PointToScreen(new System.Windows.Point(0, 0));
             return inputSimulator.mouse_MoveTo_Wpf(point);
         }
         catch (Exception ex)
         {
             ex.log("in mouse_MoveTo_Wpf");
             return null;
         }
     }));
 }