Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 使用querystring wp7在itemtemplate中导航_Windows Phone 7_Listbox_Navigation_Query String_Itemtemplate - Fatal编程技术网

Windows phone 7 使用querystring wp7在itemtemplate中导航

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

我在wp7应用程序的ListBox中有一个ListBox.ItemTemplate。我想要的是当用户在querystring中单击标题为titletext的标题时导航到某个页面

目前它只是导航到某个页面

 <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是否有任何方法捕获代码背后的事件