![](/img/trans.png)
[英]How to add item to ObservableCollection, return from xml file?
[英]How to bind a ModelView item from a ObservableCollection in xml?
沒有檢查,但是類似的東西應該可以工作
<ItemsControl ItemsSource="{Binding Aded}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <!-- some data template --> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.