【发布时间】:2013-11-14 17:42:30
【问题描述】:
<phone:LongListSelector
Margin="0,0,-12,0"
ItemsSource="{Binding CustomSounds.Items}"
LayoutMode="Grid"
GridCellSize="150,150"
ItemTemplate="{StaticResource CustomSoundTileDataTemplate}"
SelectionChanged="LongListSelector_SelectionChanged"
x:Name="CustomSoundLongListSelector"
/>
我有一个这样的 LongListSelector,现在我在 CustomSounds.Items 中更改了一些内容并想重新加载它。我如何在文件后面的代码中做到这一点,CustomSoundLongListSelector.ItemSource = ...
【问题讨论】:
-
CustomSoundLongListSelector.ItemSource = CustomSounds.Items 直接使用它..或将您的项目集合设为 Observable Collections。
标签: c# windows-phone-8 longlistselector itemsource