阅读背景:

有没有一种简单的方法将命令绑定到MVVM WPF中的列表框?

来源:互联网 

I have been trying to create a fairly simple application in WPF following the MVVM development pattern but I have been going crazy over how difficult it seems to be to do simple things. I have already created this app in Forms and had it successfully running, but my boss requested I rewrite the interface in WPF as a demo of the technology. I decided to try to follow as many best practices as I can in order to make the app and code as educational as possible. My current dilemma is using a listbox to run some code every time the selection changes. I'm ready to just use the code-behind with an event to call the method on the view-model. To me this seems to still be essentially MVVM since no logic is executing. Thanks for any help/insight.I have been trying to create a fairly simple ap




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

分享到: