【发布时间】:2010-10-28 11:59:03
【问题描述】:
我在 WPF 窗口中有以下组合框绑定。我需要将窗口创建为 UserControl,因为这样做我的绑定不会显示 itemSource。
ComboBox Width="200" ItemsSource="{Binding CallerChoices}" SelectedValue="Sam" SelectedItem="{Binding CallerChoosen}"
Item 源 CallerChoices 是 .cs 页面上的 List 属性。
希望您能提供帮助,因为我环顾四周,它只是不断显示如何绑定到 XAML 中存储的项目
【问题讨论】:
标签: wpf