【发布时间】:2016-12-19 14:45:27
【问题描述】:
假设您在 WPF 中有一个列表框,其中包含 1、2、3、4、5 等项目。您如何在第一个列表框旁边创建另一个列表框,根据第一个列表框中的选择显示其项目?因此,如果您在 Listbox 中选择“item 2”,您将在 Listbox2 中获得 2A、2B、2C 等,如果您选择“item 3”,您将在 Listbox3 中获得 3A、3B、3C 等
Can't embed the picture yet but here's the example of what i need
【问题讨论】:
-
ItemsSource="{Binding SelectedItem.ChildCollection, ElementName=yourFirstList}"