---
id: "T:cAlgo.API.WebViewLoadedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewLoadedEventArgs/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# WebViewLoadedEventArgs (class)

Provides data for the WebView control Loaded event.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never raised in the CLI: the events that pass it never fire there (WebView.Loaded).
- Cloud: Never raised in the cloud: the events that pass it never fire there (WebView.Loaded).

## Definition

```csharp
public class WebViewLoadedEventArgs
```

## Examples

C#:

```csharp
protected override void OnStart()
{
    var webView = new WebView();
    webView.Loaded += OnWebViewLoaded;
    Chart.AddControl(webView);
}

private void OnWebViewLoaded(WebViewLoadedEventArgs args)
{
    Print("Web view loaded: {0}", args.WebView.IsLoaded);
}
```

Python:

```python
def on_start(self):
    webView = WebView()
    webView.Loaded += self.on_web_view_loaded
    api.Chart.AddControl(webView)

def on_web_view_loaded(self, args):
    api.Print(f"Web view loaded: {args.WebView.IsLoaded}")
```

## Properties

- `public WebView WebView {get;}` — The WebView control. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/WebViewLoadedEventArgs/WebView/index.md)

