简体   繁体   English

移至下一个域Web浏览器控件

[英]move into next field webbrowser control

I am using a web browser control in wpf to load a web page. 我在wpf中使用Web浏览器控件加载网页。 I need to have a wpf button which when clicked will help the user to move next input field, The web page have two text box and two radio buttons as input fields. 我需要一个wpf按钮,单击该按钮将帮助用户移动下一个输入字段。该网页有两个文本框和两个单选按钮作为输入字段。 How can i simulate this when the wpf button is clicked? 单击wpf按钮时如何模拟呢?

To set focus on a WPF textbox you can do as following. 若要将焦点放在WPF文本框中,可以执行以下操作。 (Possible duplicate : source ) (可能重复: 来源

To set logical focus to an input control 将逻辑焦点设置为输入控件

FocusManager.SetFocusedElement(this, textboxJack);     // set logical focus 

To set keyboard focus to an input control 将键盘焦点设置为输入控件

Keyboard.Focus(textboxJill);                             // set keyboard focus 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM