A table contains ID, Name, Job in database and 3 textboxes on wpf window. I want, when ID textbox change, fills two other textboxes from database. I only can do it with comboBox_SelectionChanged.
You can use MVVM pattern to accomplish the same. I will try to explain the involved steps in brief.
Use the link below for better understanding.
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged(v=vs.110).aspx
你可以将TextChanged事件用于文本框。将id值与database.if中的值进行比较。如果等于,则通过数据库检索该id的相应名称和作业
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.