Skip to content

Commit

Permalink
Delete more obsolete methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ELanning committed Dec 5, 2024
1 parent d89a187 commit ccc3710
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions docs/api/element.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,19 +256,6 @@ The current element is returned to allow chaining methods.
element.Invoke<MyCustomControl, Guid>(x => x.GetFormId(), out var result);
```
----
`Element Invoke(Expression<Action<UIElement>> code, int timeoutMs = 10_000)`

Invokes the given `code` expression on the underlying WPF element.

A timeout exception is thrown if the expression execution time exceeds `timeoutMs`.

The current element is returned to allow chaining methods.

**Usage**
```csharp
element.Invoke(x => x.Focus());
```
----
`Element Invoke<TInput>(Expression<Action<TInput>> code, int timeoutMs = 10_000)`

Invokes the given `code` expression on the underlying WPF element.
Expand Down Expand Up @@ -321,21 +308,6 @@ The current element is returned to allow chaining methods.
element.InvokeAsync<MyCustomControl, Guid>(x => x.GetFormIdAsync(), out var formId);
```
----
`Element InvokeAsync(Expression<Func<UIElement, Task>> code, int timeoutMs = 10_000)`

Invokes the given async `code` expression on the underlying WPF element.

A timeout exception is thrown if the expression execution time exceeds `timeoutMs`.

It is not possible to call `await` within an expression, it will be handled by the `Element` for you.

The current element is returned to allow chaining methods.

**Usage**
```csharp
element.InvokeAsync(x => x.ResetControlDataAsync());
```
----
`Element InvokeAsync<TInput>(Expression<Func<TInput, Task>> code, int timeoutMs = 10_000)`

Invokes the given async `code` expression on the underlying WPF element.
Expand Down

0 comments on commit ccc3710

Please sign in to comment.