1

我正在使用 windows phone 8.1[RT] 应用程序,我想使用包含两个 stackPanel 的 FlipView

 <FlipView x:Name="myFlip">

        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock Text="1" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <CheckBox x:Name="chk1" Checked="chk1_Checked" Unchecked="chk1_Unchecked" />
            <CheckBox x:Name="chk2" Checked="chk2_Checked" Unchecked="chk2_Unchecked" />
        </StackPanel>
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock Text="2" FontSize="25" HorizontalAlignment="Center" VerticalAlignment="Center"/>

            <Button Click="ok" />
        </StackPanel>


    </FlipView>

我希望在检查 chk1 和 chk2 之后,用户可以滑动到其他 stackPanel 。在 stackPanel 2 ok 按钮上单击可以返回到 stackPanel 1 。在翻转视图中可能吗?谢谢

4

1 回答 1

0

在 chk1_Checked 和 chk1_Checked 添加:

if (chk1.IsChecked && chk2.IsChecked)
{
   myFlip.SelectedIndex = 1;
}

在确定添加:

myFlip.SelectedIndex = 0;
于 2015-12-02T11:31:52.407 回答