Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 XAML 页面上绑定两个列表。
有没有可能做这样的事情:
this.DataContext = {listOne,ListTwo} ;
非常感谢,
此致 :)
您可以为此使用匿名对象:
this.DataContext = new { One = listOne, Two = listTwo};