sam*_*era 9 c# data-binding wpf xaml
如何将WPF绑定ItemsSource到私有属性?
<ComboBox x:Name="xxx" ItemsSource="{Binding Items, Mode=OneWay}"
DisplayMemberPath="ItemName"/>
Run Code Online (Sandbox Code Playgroud)
public partial class ItemBuySellAddEdit : BasePage
{
private List<Item> Items { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
表单加载时将填充项目列表.
| 归档时间: |
|
| 查看次数: |
10212 次 |
| 最近记录: |