开发者

Where can I find the default behaviour on an event for a WPF control? [closed]

开发者 https://www.devze.com 2023-02-11 08:38 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I would like to know what a given control does on a given event 开发者_开发知识库by default.

e.g.: what does a TextBox do when I double-click on it? I don't necessarily need the exact code, I could do with a basic description. Even just knowing that a given Event is managed by WPF by default would help me in some cases.

I have looked on msdn, in the classes definitions, in the controlTemplate examples, etc... without success.

is there a doc that contains this info, or any way to find it?

edit: the reason I need this is because I have a few controls that inherit system controls, and I must trap absolutely almost every user input on those controls and prevent WPF to take over and apply the default behaviour (selecting the current word when you double-click on a textBox for instance). So I need to trap every possible event and put Handled = true. But I would still like to be sure that I will not break anything or, if I break something, at least to be aware of it...


Well I think it is safe to conclude that this info is not readily available.

my best shot is probably to use the bits of code available on codeplex and deduce what happens for each type of object from there...

0

精彩评论

暂无评论...
验证码 换一张
取 消