我在Windows手机应用程序中使用分组长列表选择器。它具有正常的行为,每当我点击一个标题时,跳转列表屏幕就会打开。但是,我想在我没有与用户进行任何交互的情况下在页面上导航时触发此操作。在没有任何用户交互的情况下导航到页面时是否有可能显示跳转列表?谢谢
<phone:LongListSelector
Height="570"
Margin="0,-10,0,0"
VerticalAlignment="Top"
LayoutMode="List"
x:Name="SizeLLs"
SelectionChanged="LongListSelector_SelectionChanged_1"
ItemsSource="{Binding Path=CurrentProduct.product_variations, Source={StaticResource LocalVariablesResources}}">
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<Grid Margin="12,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="/Assets/emptyCircle.png" ></Image>
<Image Grid.Column="0" Source="/Assets/check50pxRadioBT.png" Visibility="{Binding isSelected, Converter={StaticResource VisibilityConverter}, Mode=OneWay}" ></Image>
<TextBlock Grid.Column="1" FontWeight="Normal" TextWrapping="Wrap" Margin="15,10,10,10" Foreground="#878780" FontSize="30" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding title}"></TextBlock>
<TextBlock Grid.Column="2" FontWeight="Normal" Margin="15,10,5,10" Foreground="#878780" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding price}"></TextBlock>
<TextBlock Grid.Column="3" FontWeight="Normal" Margin="0,10,15,10" Foreground="#878780" FontSize="20" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=CurrentConfiguration.currency_symbol, Source={StaticResource LocalVariablesResources}}"></TextBlock>
</Grid>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
答案 0 :(得分:0)
不,不幸的是,LongListselector没有公开曝光此功能。
您可以使用the WP7 source code of the control,并添加所需的功能(即将OpenPopup
方法公开)。