阅读背景:

将父控制列表的项目(整个类)传递给命令

来源:互联网 

Is there a way to pass a child entire class of parent Collection Control (in my case ListBox) into Command in ViewModel? I can pass any single value, either 'IsChecked', 'AttachmentId', or 'Name'. All three properties are part of 'Attachment' class. 'AttachmentLst' (item source of ListBox contains 'Attachment' elements. I would like to pass entire class into my Command. Below is working code for passing just one property, in this case 'AttachmentId'. How to pass 'Attachment' into the Command?Is there a way to pass a child entire class of




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

分享到: