0
我想用動態行加載我的WPF UserControl。我的情況如下。WPF使用MVVM模式創建動態行
1. When the UserControl gets loaded, I will populate my List<string> object with some values which I will get from a database.
2. I need to create equal number of rows in my UserControl which matches the number of items in the List<string> object. The display will look something like below
色譜柱1是一個標籤控制和第2列將是一個TextBlock控制
Label 1: Item 1 (This is the value from the List<string> object)
Label 2: Item 2
Label 3: Item 3
I know how to create rows dynamically but my problem is how do I do this when I'm using the MVVM pattern.
注:我使用從CodePlex上MVVM工具包。
感謝, Jithu