HTML的"for"的WPF标签对应项属性 [英] WPF label counterpart for HTML "for" attribute

查看:97
本文介绍了HTML的"for"的WPF标签对应项属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在WPF中添加一些属性,以便在单击时使目标控件获得焦点吗?我找到的最接近的东西是目标",但它仅适用于访问键,单击它无效.

Is there some attribute in WPF that I can add to element, so when I click it the target control get focus? The closest thing I have found is 'Target', but it works only with access keys and clicking it has no effect.

推荐答案

否,但

No, but an attached behavior could be made to work for this.

这篇关于HTML的"for"的WPF标签对应项属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆