(semanticZoom.ZoomedOutView as ListViewBase).ItemsSource = gridViewData.View.CollectionGroups;
这样写能够正常显示且定位的,但我现在的数据是异步请求的,想通过绑定的方式来加载数据
<Page.Resources>
<CollectionViewSource x:Name="gridViewData" Source="{Binding BrandData}" IsSourceGrouped="true" />
</Page.Resources>
<SemanticZoom.ZoomedOutView>
<GridView ScrollViewer.IsHorizontalScrollChainingEnabled="True" ItemsSource="{Binding BrandData}">
<GridView.ItemTemplate>
<DataTemplate>
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
Margin="10">
<TextBlock Text="{Binding
Key}" Foreground="Black" FontSize="25" />
</Grid>
</DataTemplate>
</GridView.ItemTemplate>
<GridView.ItemsPanel>
<ItemsPanelTemplate>
<WrapGrid ItemWidth="75" ItemHeight="75" MaximumRowsOrColumns="1"
VerticalChildrenAlignment="Center" />
</ItemsPanelTemplate>
</GridView.ItemsPanel>
</GridView>
</SemanticZoom.ZoomedOutView
……………………
这样绑定数据能够显视,却不能够准确的定位,请问各位该如何做?