コード例 #1
0
 private void BotaoVoltar(object sender, EventArgs e)
 {
     if (WebView3.CanGoBack)
     {
         WebView3.GoBack();
     }
 }
コード例 #2
0
 private void BotaoProximo(object sender, EventArgs e)
 {
     if (WebView3.CanGoForward)
     {
         WebView3.GoForward();
     }
 }
コード例 #3
0
 public About_FAQPage()
 {
     InitializeComponent();
     webViewQA     = this.FindControl <WebView3>("webViewQA");
     webViewQA.Url = string.Format(
         UrlConstants.OfficialWebsite_Box_Faq_,
         CefNetApp.GetTheme(),
         R.Language);
 }
コード例 #4
0
        public About_ChangeLog()
        {
            InitializeComponent();

            webView     = this.FindControl <WebView3>(nameof(webView));
            webView.Url = string.Format(
                UrlConstants.OfficialWebsite_Box_Changelog_,
                CefNetApp.GetTheme(),
                R.Language);
        }
コード例 #5
0
        public About_FAQPage()
        {
            InitializeComponent();

            webViewQA            = this.FindControl <WebView3>(nameof(webViewQA));
            webViewQA.InitialUrl = string.Format(
                "https://steampp.net/faqbox?theme={0}&language={1}",
                CefNetApp.GetTheme(),
                R.Language);
        }
コード例 #6
0
        public DebugWebViewPage()
        {
            InitializeComponent();

            webView     = this.FindControl <WebView3>("webView");
            webView.Url = "chrome://version";
            //webView.BrowserCreated += WebView_BrowserCreated;

            urlTextBox        = this.FindControl <TextBox>("urlTextBox");
            urlTextBox.KeyUp += UrlTextBox_KeyUp;
        }
コード例 #7
0
        public WebView3Window()
        {
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            webView                       = this.FindControl <WebView3>(nameof(webView));
            webView.InitialUrl            = WebView3WindowViewModel.AboutBlank;
            webView.Opacity               = 0;
            webView.DocumentTitleChanged += WebView_DocumentTitleChanged;
        }
コード例 #8
0
        public WebView3Window() : base()
        {
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif
            webView = this.FindControl <WebView3>(nameof(webView));
            webView.Browser.InitialUrl            = WebView3WindowViewModel.AboutBlank;
            webView.Browser.DocumentTitleChanged += WebView_DocumentTitleChanged;
            webView.Browser.LoadingStateChange   += WebView_LoadingStateChange;
            webView.Browser.BrowserCreated       += WebView_BrowserCreated;
        }
コード例 #9
0
        public About_FAQPage()
        {
            InitializeComponent();

            webViewQALoading              = this.FindControl <ProgressRing>(nameof(webViewQALoading));
            webViewQA                     = this.FindControl <WebView3>(nameof(webViewQA));
            webViewQA.Opacity             = 0;
            webViewQA.LoadingStateChange += WebView_LoadingStateChange;
            webViewQA.InitialUrl          = string.Format(
                "https://steampp.net/faqbox?theme={0}&language={1}",
                CefNetApp.GetTheme(),
                R.Language);
        }
コード例 #10
0
 private void BotaoAtualizar(object sender, EventArgs e)
 {
     WebView3.Reload();
 }
コード例 #11
0
 /// <summary>
 /// This is the click handler for the 'Script' button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Script_Click(object sender, RoutedEventArgs e)
 {
     // Invoke the javascript function called 'SayGoodbye' that is loaded into the WebView.
     WebView3.InvokeScript("SayGoodbye", null);
 }
コード例 #12
0
 /// <summary>
 /// This is the click handler for the 'Load' button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Load_Click(object sender, RoutedEventArgs e)
 {
     // Grab the HTML from the text box and load it into the WebView
     WebView3.NavigateToString(HTML3.Text);
 }