1

我有一个跨越全景项目 (即,它的方向在 Windowsphone 8 中设置为“水平”。

用户可以在右侧滑动并查看剩余的全景图。我想通过代码来模仿这个功能。

即,当我单击最左侧的按钮时,我需要可见区域移动到最右侧(就像我滑动一样)。如何通过代码来完成?

  <phone:PanoramaItem x:Name="itemOne" Header="a long itemmmmmmmmmmmmmmm" Width="998" Orientation="Horizontal">
            <StackPanel>
            <StackPanel HorizontalAlignment="Left" Height="263" Margin="41,0,0,0" VerticalAlignment="Top" Width="855" Orientation="Horizontal">
                <TextBox Height="238" Margin="0,24,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="384"/>
                <TextBox x:Name="txt2" Height="189" Margin="0,36,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="394" TextChanged="TextBox_TextChanged_1"/>
                    <Button x:Name="btnend">dddd</Button>
                </StackPanel>
            <StackPanel>
                <CheckBox Margin="0,0,654,0">
                    click me if u need
                </CheckBox>
                <TextBox x:Name="txt1" Margin="0,0,516,0" Text="hello"> </TextBox>
                <Button Margin="0,0,742,0" Click="Button_Click_1">
                    hello test
                </Button>
            </StackPanel>
            </StackPanel>
        </phone:PanoramaItem>
4

0 回答 0