/// <summary> /// Makes sure 'action' is executed on the thread that owns the object. Otherwise, things will go boom. /// </summary> ///<param name="action">The action which should be executed</param> private static void DoDispatchedAction(Action action) { DispatcherHelper.CheckInvokeOnUI(action); }
private T InvokeOnCurrentDispatcher <T>(Func <T> action) { return(DispatcherHelper.CheckInvokeOnUI(action)); }