如何使用WPF MVVM棱镜技术将数据绑定到模板化的组合框?

时间:2012-04-15 09:38:30

标签: wpf mvvm combobox

 Am very very beginner in WPF and MVVM architcture using PRISM.

如何将数据绑定到temaplted组合框?         我有一个可观察的字符串集合,它是一个主数据和viewmodel中Type类型的实体列表。         observablecollection = {data1,data2,data3,data4,data5,..}         实体         {          字符串名称; int Pricevalue;         }         List = {{data1,13},{data5,23}}         当observale集合与其中一个数据实体匹配时,应检查组合框的复选框,并将其值显示在文本框中         在xaml标记中有一个模板化组合框,它有文本框和复选框绑定到上面的字符串observablecollection。         还有另一个文本框,其中包含实体的一个属性。         必须检查模板化的组合框,以查找与实体列表相同的所有传统。         并且组合框应该在另一个文本框中显示第一个选中的复选框项及其相应的entiti属性。

    Pls help in writing up the markup  and the conditions to bind the data to templated combo box and textbox.

我遇到错误或无法正确编码

0 个答案:

没有答案