Skip to content

WebView.GoBackAsync

method · WebView · cAlgo.API

DesktopCLICloud

Navigates asynchronously the WebView to the previous page in the navigation history.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public void GoBackAsync()
webView.GoBackAsync() -> None

Examples

var webView = new WebView { Height = 300 };
webView.NavigateAsync("https://ctrader.com/");
var backButton = new Button { Text = "Back" };
backButton.Click += args => webView.GoBackAsync();
var panel = new StackPanel();
panel.AddChild(backButton);
panel.AddChild(webView);
Chart.AddControl(panel);
webView = WebView()
webView.Height = 300
webView.NavigateAsync("https://ctrader.com/")
backButton = Button()
backButton.Text = "Back"
backButton.Click += lambda args: webView.GoBackAsync()
panel = StackPanel()
panel.AddChild(backButton)
panel.AddChild(webView)
api.Chart.AddControl(panel)