コード例 #1
0
 public void Load(String url)
 {
     if (IsBrowserInitialized)
     {
         managedCefBrowserAdapter.LoadUrl(url);
     }
     else
     {
         Address = url;
     }
 }
コード例 #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);
            }
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #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);
        }
コード例 #6
0
 public void Load(string url)
 {
     Address = url;
     managedCefBrowserAdapter.LoadUrl(Address);
 }
コード例 #7
0
 public void Load(String url)
 {
     managedCefBrowserAdapter.LoadUrl(url);
 }