public static int xHandle(this Window wnd) { int rt = 0; DispatcherEx.xInvoke(() => { rt = new WindowInteropHelper(wnd).Handle.ToInt32(); }); return(rt); }
public static void xInovkeLowestPriority(Action act) { DispatcherEx.xInvoke(act, DispatcherPriority.ApplicationIdle); }