private void loadWebpage(string address, int windowHeight, int windowWidth)
 {
     GetSite gs = new GetSite();
     gs.thisSite.Source = new Uri(address);
     NavigationWindow _navigationWindow = new NavigationWindow();
     _navigationWindow.ResizeMode = ResizeMode.NoResize;
     _navigationWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     _navigationWindow.Width = windowWidth;
     _navigationWindow.Height = windowHeight;
     _navigationWindow.Show();
     _navigationWindow.WindowStyle = WindowStyle.ToolWindow;
     _navigationWindow.Navigate(gs);
 }
Пример #2
0
        private void loadWebpage(string address, int windowHeight, int windowWidth)
        {
            GetSite gs = new GetSite();

            gs.thisSite.Source = new Uri(address);
            NavigationWindow _navigationWindow = new NavigationWindow();

            _navigationWindow.ResizeMode            = ResizeMode.NoResize;
            _navigationWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            _navigationWindow.Width  = windowWidth;
            _navigationWindow.Height = windowHeight;
            _navigationWindow.Show();
            _navigationWindow.WindowStyle = WindowStyle.ToolWindow;
            _navigationWindow.Navigate(gs);
        }