From e9e5341b1b9964f2e2fcfeaadc145cfe0eb7633f Mon Sep 17 00:00:00 2001 From: Merrie McGaw Date: Mon, 25 Apr 2022 13:03:22 -0700 Subject: [PATCH 1/2] Update WebBrowser.xml Required note for accessibility compliance. --- xml/System.Windows.Forms/WebBrowser.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xml/System.Windows.Forms/WebBrowser.xml b/xml/System.Windows.Forms/WebBrowser.xml index 82567251b97..a28d71a594e 100644 --- a/xml/System.Windows.Forms/WebBrowser.xml +++ b/xml/System.Windows.Forms/WebBrowser.xml @@ -90,7 +90,8 @@ > [!NOTE] > The class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your `Main` method is marked with the attribute. - +> [!NOTE] +> For accessibility purposes the property should be set to `false` when there is no content to display in the control. Change the value to `true` to enable users to navigate via keyboard into the contents of the control. ## Examples The following code example demonstrates how to implement an address bar for use with the control. This example requires that you have a form that contains a control called `webBrowser1`, a control called `TextBoxAddress`, and a control called `ButtonGo`. When you type a URL into the text box and press ENTER or click the **Go** button, the control navigates to the URL specified. When you navigate by clicking a hyperlink, the text box automatically updates to display the current URL. From 25d87e9ccfe2bdfcd7d4ba28ef9a5700f67cafc4 Mon Sep 17 00:00:00 2001 From: Merrie McGaw Date: Mon, 25 Apr 2022 14:44:12 -0700 Subject: [PATCH 2/2] Update WebBrowser.xml Updated link to WinForms.control --- xml/System.Windows.Forms/WebBrowser.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Windows.Forms/WebBrowser.xml b/xml/System.Windows.Forms/WebBrowser.xml index a28d71a594e..c2fe1d8eff1 100644 --- a/xml/System.Windows.Forms/WebBrowser.xml +++ b/xml/System.Windows.Forms/WebBrowser.xml @@ -91,7 +91,7 @@ > The class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your `Main` method is marked with the attribute. > [!NOTE] -> For accessibility purposes the property should be set to `false` when there is no content to display in the control. Change the value to `true` to enable users to navigate via keyboard into the contents of the control. +> For accessibility purposes the property should be set to `false` when there is no content to display in the control. Change the value to `true` to enable users to navigate via keyboard into the contents of the control. ## Examples The following code example demonstrates how to implement an address bar for use with the control. This example requires that you have a form that contains a control called `webBrowser1`, a control called `TextBoxAddress`, and a control called `ButtonGo`. When you type a URL into the text box and press ENTER or click the **Go** button, the control navigates to the URL specified. When you navigate by clicking a hyperlink, the text box automatically updates to display the current URL.