小编Jan*_*nus的帖子

WPF绑定Dictionary <string,List <string>到listView,ListBox如何?

如何将Dictionary绑定到ListView和Text框?

namespace Models
{
  public class DynamicList
  {
    #region Constructor

    public DynamicList()
    {
        _propDict = new Dictionary<string, object>();
        dynimicListProps = new List<DynimicListProperty>();
    }
    #endregion Constructor

    #region Fields

    private Dictionary<string, object> _propDict;
    private IList<DynimicListProperty> dynimicListProps;
    #endregion Fields

    #region Properties
    public Dictionary<string, object> PropsDict
    {
        get { return _propDict; }
        set { _propDict = value; }
    }
    public string TestString
    {
        get { return "Hello! It's works!"; }
    }
    #endregion Properties

    #region Methods
    public void CreateProperties(string[] arrLine)
    {
        for (int i = …
Run Code Online (Sandbox Code Playgroud)

wpf binding dictionary

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

binding ×1

dictionary ×1

wpf ×1