【问题标题】:How to stop swipe Fliverview Iteam in windows phone 8.1如何在 windows phone 8.1 中停止滑动 Riverview 项目
【发布时间】:2015-11-02 06:29:44
【问题描述】:

我正在使用 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 。 在翻转视图中可能吗? 谢谢你

【问题讨论】:

    标签: c# xaml windows-phone-8.1 flipview


    【解决方案1】:

    在 chk1_Checked 和 chk1_Checked 中添加:

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

    可以添加:

    myFlip.SelectedIndex = 0;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多