C# 如何在windows phone 8.1中停止滑动Fliverview Iteam
我正在使用windows phone 8.1[RT]应用程序,我想使用FlipView包含两个stackPanelC# 如何在windows phone 8.1中停止滑动Fliverview Iteam,c#,xaml,windows-phone-8.1,flipview,C#,Xaml,Windows Phone 8.1,Flipview,我正在使用windows phone 8.1[RT]应用程序,我想使用FlipView包含两个stackPanel <FlipView x:Name="myFlip"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="1" FontSize="25" HorizontalAlignment="Cent
<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。
这在flipview中可能吗?
谢谢您在chk1_Checked和chk1_Checked中添加:
if (chk1.IsChecked && chk2.IsChecked)
{
myFlip.SelectedIndex = 1;
}
在ok中添加:
myFlip.SelectedIndex = 0;
在chk1_选中和chk1_选中中添加:
if (chk1.IsChecked && chk2.IsChecked)
{
myFlip.SelectedIndex = 1;
}
在ok中添加:
myFlip.SelectedIndex = 0;