阅读背景:

WPF / XAML:使用相同事件的多个控件 - 有更简单的方法吗?

来源:互联网 

I have around 10 textboxes using the same events - I then just cast sender to a textbox and make whatever changes I'm going to make to the text. I'm curious, is there an easier/cleaner way to assign those events to the code-behind methods? Right now, I'm doing it by just assigning each event the method, repeatedly, to each textbox. I have around 10 textboxes using the same event




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: