Esempio n. 1
0
 public void Load(String url)
 {
     if (IsBrowserInitialized)
     {
         managedCefBrowserAdapter.LoadUrl(url);
     }
     else
     {
         Address = url;
     }
 }
Esempio n. 2
0
        public void Load(string url)
        {
            //Added null check -> binding-triggered changes of Address will lead to a nullref after Dispose has been called.
            if (managedCefBrowserAdapter != null)
            {
                // TODO: Consider making the delay here configurable.
                tooltipTimer = new DispatcherTimer(
                    TimeSpan.FromSeconds(0.5),
                    DispatcherPriority.Render,
                    OnTooltipTimerTick,
                    Dispatcher
                    );

                managedCefBrowserAdapter.LoadUrl(url);
            }
        }
Esempio n. 3
0
        public void Load(string url)
        {
            if (!Cef.IsInitialized &&
                !Cef.Initialize())
            {
                throw new InvalidOperationException("Cef::Initialize() failed");
            }

            // TODO: Consider making the delay here configurable.
            tooltipTimer = new DispatcherTimer(
                TimeSpan.FromSeconds(0.5),
                DispatcherPriority.Render,
                OnTooltipTimerTick,
                Dispatcher
                );

            managedCefBrowserAdapter.LoadUrl(url);
        }
Esempio n. 4
0
        public void Load(string url)
        {
            if (!Cef.IsInitialized &&
                !Cef.Initialize())
            {
                throw new InvalidOperationException("Cef::Initialize() failed");
            }

            //Added null check -> binding-triggered changes of Address will lead to a nullref after Dispose has been called.
            if (managedCefBrowserAdapter != null)
            {
                // TODO: Consider making the delay here configurable.
                tooltipTimer = new DispatcherTimer(
                    TimeSpan.FromSeconds(0.5),
                    DispatcherPriority.Render,
                    OnTooltipTimerTick,
                    Dispatcher
                    );

                managedCefBrowserAdapter.LoadUrl(url);
            }
        }
Esempio n. 5
0
        protected virtual void OnAddressChanged(string oldValue, string newValue)
        {
            if (ignoreUriChange)
            {
                return;
            }

            if (!Cef.IsInitialized &&
                !Cef.Initialize())
            {
                throw new InvalidOperationException("Cef::Initialize() failed");
            }

            // TODO: Consider making the delay here configurable.
            tooltipTimer = new DispatcherTimer(
                TimeSpan.FromSeconds(0.5),
                DispatcherPriority.Render,
                OnTooltipTimerTick,
                Dispatcher
                );

            managedCefBrowserAdapter.LoadUrl(Address);
        }
Esempio n. 6
0
 public void Load(string url)
 {
     Address = url;
     managedCefBrowserAdapter.LoadUrl(Address);
 }
Esempio n. 7
0
 public void Load(String url)
 {
     managedCefBrowserAdapter.LoadUrl(url);
 }