IInvokeProvider.Invoke Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sends a request to activate a control and initiate its single, unambiguous action.
Assembly: System.Windows (in System.Windows.dll)
Invoke is intended as an asynchronous call and must return immediately without blocking. This behavior is particularly critical for controls that, directly or indirectly, launch a modal dialog when invoked. Any UI automation client that instigates the event remains blocked until the modal dialog is closed.
Providers should raise ElementNotEnabledException for cases where an Invoke action is performed but the control is not enabled (whether by a false value of IsEnabled value on a true control, or by equivalent control state for other UI elements or custom elements.)