Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个ListView我想在其中插入一个Expander控件作为项目(例如在第三列中)。什么功能/方法ListView可以帮助我做到这一点?
ListView
Expander
您可以像这样更改 ItemTemplate:
<ListView> <ListView.ItemTemplate> <DataTemplate> <Expander Header="{Binding Title}"> <TextBlock Text="{Binding Description}" /> </Expander> </DataTemplate> </ListView.ItemTemplate> </ListView>