我有LongListSelector
:
<Controls:LongListSelector Height="Auto" x:Name="playlistList" HorizontalContentAlignment="Stretch" SelectionChanged="DidPressSelectItem"
GroupHeaderTemplate="{StaticResource AddrBookGroupHeaderTemplate}"
LayoutMode="List"
IsGroupingEnabled="true" HideEmptyGroups="True">
<Controls:LongListSelector.ItemTemplate>
<DataTemplate>
<local:SearchTemplateSelector Content="{Binding}" HorizontalContentAlignment="Stretch">
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu Loaded="ContextMenu_Load" Unloaded="ContextMenu_Unload">
</toolkit:ContextMenu>
</toolkit:ContextMenuService.ContextMenu>
<local:SearchTemplateSelector.Top100PlaylistTemplate>
........
</local:SearchTemplateSelector.Top100PlaylistTemplate>
<local:SearchTemplateSelector.PlaylistTemplate>
..............
</local:SearchTemplateSelector.PlaylistTemplate>
</local:SearchTemplateSelector>
</DataTemplate>
</Controls:LongListSelector.ItemTemplate>
</Controls:LongListSelector>
我在每个项目上都有一个长按下拉菜单,我也有几种TemplateSelector
,我希望能够选择下拉菜单只能在其中一个模板。我怎么能实现它?