Ejemplo n.º 1
0
        /// <summary>
        /// Open a webbrowser with a URL
        /// </summary>
        /// <param name="URL"></param>
        private void openWebBrowser(string URL)
        {
            // initialize the window: webbrowser
            var webBrowserWindow = new WebBrowserWindow();

            // finds the webbrowser in the webbrowserwindow
            var webBrowser = (WebBrowser)webBrowserWindow.FindName("webBrowser");

            if (webBrowser != null)
            {
                // Navigates to the URL from the buttons command param
                webBrowser.Navigate(URL);
            }

            // Show the webbrowser window
            webBrowserWindow.Show();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Open a webbrowser with a URL
        /// </summary>
        /// <param name="URL"></param>
        private void openWebBrowser(string URL)
        {
            // initialize the window: webbrowser
            var webBrowserWindow = new WebBrowserWindow();

            // finds the webbrowser in the webbrowserwindow
            var webBrowser = (WebBrowser)webBrowserWindow.FindName("webBrowser");

            if (webBrowser != null)
            {
                // Navigates to the URL from the buttons command param
                webBrowser.Navigate(URL);
            }

            // Show the webbrowser window
            webBrowserWindow.Show();
        }