Windows phone 7 使用querystring wp7在itemtemplate中导航
我在wp7应用程序的ListBox中有一个ListBox.ItemTemplate。我想要的是当用户在querystring中单击标题为titletext的标题时导航到某个页面 目前它只是导航到某个页面Windows phone 7 使用querystring wp7在itemtemplate中导航,windows-phone-7,listbox,navigation,query-string,itemtemplate,Windows Phone 7,Listbox,Navigation,Query String,Itemtemplate,我在wp7应用程序的ListBox中有一个ListBox.ItemTemplate。我想要的是当用户在querystring中单击标题为titletext的标题时导航到某个页面 目前它只是导航到某个页面 <ListBox x:Name="lbname" > <ListBox.ItemTemplate> <DataTemplate> <Grid Backgr
<ListBox x:Name="lbname" >
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock x:Name="tbTitle" Grid.Row="0" Text="{Binding Title}" TextAlignment="Left" FontFamily="Segoe WP" Foreground="#000000" Style="{StaticResource PhoneTextTitle1Style}" >
<Custom:Interaction.Triggers>
<Custom:EventTrigger EventName="MouseLeftButtonDown">
<ic:NavigateToPageAction TargetPage="/Views/somePage.xaml"/>
</Custom:EventTrigger>
</Custom:Interaction.Triggers>
</TextBlock>
<TextBlock x:Name="tbDesc" Grid.Row="1" Margin="11,0,0,0" Text="{Binding Desc}" TextAlignment="Left" FontFamily="Segoe WP" Foreground="#000000" TextWrapping="Wrap" Style="{StaticResource PhoneTextSubtleStyle}" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
如何做到这一点?设置TargetPage={Binding Address}怎么样?我在NavigateUri={Binding NavigationURL}中使用了HyperlinkButton它会抛出错误AG_E_PARSER_BAD_PROPERTY_值,而Bindings是否有任何方法捕获代码背后的事件