【发布时间】:2010-12-15 09:48:08
【问题描述】:
我尝试使用代码绑定 XAML ListBoxItem,但似乎不起作用
在我的 XAML 中:
<Window.Resources> <local:FooList x:Key="FooListItem" /> </Window.Resources>
在我的代码中:
public class FooList { add some items; // I tried variation of that but didn't get it to work }
有什么建议吗?
【问题讨论】:
标签: c# wpf data-binding