Windows phone 8.1 Windows 8.1手机应用程序ExtendedListView.GroupStyle不工作
我在应用程序中使用ExtendedListView,因为我需要池刷新选项 通过使用nuget package:Install package ExtendedListview安装,我已经安装了ExtendedListview 0.0.5.5 现在我还希望在我的listview中有一个粘性标题 所以我可以通过下面的代码在简单的列表视图中完成它Windows phone 8.1 Windows 8.1手机应用程序ExtendedListView.GroupStyle不工作,windows-phone-8.1,longlistselector,groupstyle,Windows Phone 8.1,Longlistselector,Groupstyle,我在应用程序中使用ExtendedListView,因为我需要池刷新选项 通过使用nuget package:Install package ExtendedListview安装,我已经安装了ExtendedListview 0.0.5.5 现在我还希望在我的listview中有一个粘性标题 所以我可以通过下面的代码在简单的列表视图中完成它 <ListView IsHoldingEnabled="True" ItemsSource="{Binding Source={StaticR
<ListView IsHoldingEnabled="True"
ItemsSource="{Binding Source={StaticResource AddressGroups}}"
ItemTemplate="{StaticResource AddrBookItemTemplate}"
ContinuumNavigationTransitionInfo.ExitElementContainer="True">
<ListView.GroupStyle>
<GroupStyle HidesIfEmpty="True" HeaderTemplate="{StaticResource AddrBookGroupHeaderTemplate}"/>
</ListView.GroupStyle>
</ListView>
但同样的事情在ExtendedListView中不起作用
<ctrl:ExtendedListView IsHoldingEnabled="True"
ItemsSource="{Binding Source={StaticResource AddressGroups}}"
ItemTemplate="{StaticResource AddrBookItemTemplate}"
ContinuumNavigationTransitionInfo.ExitElementContainer="True" >
<ctrl:ExtendedListView.GroupStyle>
<GroupStyle HeaderTemplate="{StaticResource AddrBookGroupHeaderTemplate}" />
</ctrl:ExtendedListView.GroupStyle>
</ctrl:ExtendedListView>
我在两个代码中使用了相同的HeaderTemplate,如下所示:
<DataTemplate x:Key="AddrBookGroupHeaderTemplate">
<Border Background="Transparent" Padding="5">
<Border Background="Red" BorderBrush="Red" BorderThickness="2" Width="80"
Height="62" Margin="0,0,18,0" HorizontalAlignment="Left">
<TextBlock Text="{Binding Key}" Foreground="White" FontSize="48" Padding="6"
HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
</Border>
</DataTemplate>
请尽快引导我
提前谢谢