private void OnUrlEntered(object sender, EventArgs args) { var url = urlBar.Text; // TODO: differencie search and url if (!url.StartsWith("http") || !url.StartsWith("https")) { url = "https://" + url; } var loadRequestEventArgs = new LoadRequestEventArgs { Url = url }; var handler = LoadRequest; handler?.Invoke(this, loadRequestEventArgs); }
public void OnLoadRequest(object sender, LoadRequestEventArgs e) { CurrentView().Source = e.Url; }