使用DevExpress XAF,我在“ ViewController ”中创建了“ Parametrizedaction ”,该条形码从barCode阅读器获取代码,然后在listView中添加新项。但是之后,parametrizedaction1失去了焦点,用户必须在阅读下一个条形码之前再次单击parametrizedaction1的文本。
现在,我想要的是执行结束后, Parametrizedaction中的文本将为空,并且 Parametrizedaction变得集中
public partial class TestViewController : ViewController
{
public TestViewController()
{
InitializeComponent();
// Target required Views (via the TargetXXX properties) and create their actions.
}
protected override void Onactivated()
{
base.Onactivated();
// Perform various tasks depending on the target View.
}
protected override void OnViewControlsCreated()
{
base.OnViewControlsCreated();
// access and customize the target View control.
}
protected override void OnDeactivated()
{
// Unsubscribe from previously subscribed events and release other references and resources.
base.OnDeactivated();
}
private void parametrizedaction1_Execute(object sender,ParametrizedactionExecuteEventArgs e)
{
//Execution is made with success
//No problem here
}
}