Exemple #1
0
        private void HandleLoadFinished(object sender, EventArgs e)
        {
            lock (_loadingSync)
            {
                {
                    _isLoaded = true;

                    if (_view != null)
                    {
                        _view.EvaluateJavascript(_bahavior.BuildInitializeFunction());
                    }
                }
            }
        }
Exemple #2
0
        public override void OnPageFinished(string url)
        {
            base.OnPageFinished(url);

            ThreadPool.QueueUserWorkItem(state =>
            {
                Thread.Sleep(200);

                lock (_loadingSync)
                {
                    _isLoaded     = true;
                    string script = string.Format("javascript:{0}", _behavior.BuildInitializeFunction());
                    BitBrowserApp.Current.AppContext.InvokeOnMainThread(() => _view.LoadUrl(script));
                }
            });
        }