【问题标题】:WinRT - XAML FlipView control - unusual new bahaviorWinRT - XAML FlipView 控件 - 不寻常的新行为
【发布时间】:2012-10-08 19:21:03
【问题描述】:

我想知道是否有人可以帮助我使用 windows 8 中的 FlipView 控件。我有一个使用 FlipView 的应用程序。在最近的 Windows 8 更新之前一切正常,现在 FlipView 在某些情况下会翻转“两次”。

下面是一些重现错误的示例 XAML:

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <FlipView >
        <Grid Height="762" Background="#FF29AA29">
            <TextBlock HorizontalAlignment="Center" Text="1" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="#FF192780">
            <TextBlock HorizontalAlignment="Center" Text="2" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="Green">
            <TextBlock HorizontalAlignment="Center" Text="3" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="Orange">
            <TextBlock HorizontalAlignment="Center" Text="4" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="Blue">
            <TextBlock HorizontalAlignment="Center" Text="5" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="Red">
            <TextBlock HorizontalAlignment="Center" Text="6" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
        <Grid Height="762" Background="Yellow">
            <TextBlock HorizontalAlignment="Center" Text="7" VerticalAlignment="Center" 
                       Foreground="Black" FontSize="96"/>
        </Grid>
    </FlipView>
</Grid>

正如您所见,这是一个非常简单的示例,在 FlipView 中带有编号的网格。

现在,如果您单击向前或向后翻转按钮(左右两侧略微变灰的按钮)而不将鼠标移动到其他位置(即将鼠标移到向前按钮上并单击多次而不移动再次鼠标)它将翻转 1,2,4,6,7(请参阅我的 xaml 中的数字)。

如果您在两次点击之间稍微移动鼠标,您将获得正确的行为 (1,2,3,4,5,6,7)。

本机模式和模拟器模式均存在此错误。

在模拟器中使用手指拖动方式翻转时不会出现这种情况。

有人对如何解决这个问题有任何想法吗?

【问题讨论】:

    标签: xaml windows-8 microsoft-metro windows-runtime winrt-xaml


    【解决方案1】:

    原来我下载的 Windows 8 更新搞砸了我的触摸板的驱动程序,这个问题纯粹是驱动程序相关的 - 虽然很奇怪

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-27
      相关资源
      最近更新 更多