0

パノラマ コントロールを使用して Windows Phone の UI を設計しましたが、コードで "タップ" が機能しません。なぜだろう?私のXAMLコードは次のとおりです。

<Grid x:Name="LayoutRoot">
<StackPanel Margin="0,0,0,0">
<HyperlinkButton Tap="detailmap_Tap" HorizontalAlignment="Stretch" Style="{StaticResource EmptyButtonStyle}">
            <Image Name="titleImg" Width="480" Height="150" />
</HyperlinkButton>
        <toolkit:PerformanceProgressBar Name="prgBar01" Margin="0,0,0,0" Visibility="Visible" Height="40" VerticalAlignment="Top" IsEnabled="True" IsIndeterminate="True" />
        <TextBlock Name="locationNote" TextWrapping="Wrap" Margin="12,0,0,0" />
    </StackPanel>
<controls:Panorama Title=" ">
        <!--Panorama item one-->
        <controls:PanoramaItem Header="test1">
            <Grid/>
</controls:PanoramaItem>

<!--Panorama item two-->
        <controls:PanoramaItem Header="test2">
            <Grid/>
</controls:PanoramaItem>
</controls:Panorama>
</Grid>

この UI デザインは完璧に機能しますが、hyperlinkBut​​ton の「タップ」が反応しません。何か案は?

4

1 に答える 1

1

ユーザーがどのパノラマ アイテムを使用していてもボタンを表示するには、ボタンの下にパノラマを配置します。

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto">
        <RowDefinition Height="*">
    </Grid.RowDefinitions>
    <HyperlinkButton Grid.Row="0"/>
    <controls:Panorama>
        <controls:PanoramaItem />
    </controls:Panorama>
</Grid>
于 2012-05-08T16:50:11.553 に答える