WPF ItemsSource
をプライベートプロパティにバインドする方法はありますか?ItemsSourceをプライベートプロパティにバインドする方法
<ComboBox x:Name="xxx" ItemsSource="{Binding Items, Mode=OneWay}"
DisplayMemberPath="ItemName"/>
public partial class ItemBuySellAddEdit : BasePage
{
private List<Item> Items { get; set; }
}
アイテムリストは、フォームのロード中に取り込まれます。
パブリック/内部バインディングを使用しています。 – RainCast