2013-05-27 17 views
1

在我的Windows 8 C#应用程序中,当我有控件包含图像时,我应用了来自Callisto的Tilt,然后第一次点击此控件时,图像闪烁。特别是使用自定义“图像按钮”时,这非常令人不安。如何使用Callisto的倾斜进行图像控制时删除图像闪烁?

那么有没有办法让这个控件可以在没有图像闪烁的情况下倾斜?

为了重现此问题,只需将其添加到新的Windows 8 C#SplitApp项目中,添加Callisto NuGet包并评论默认的GridView和SpliView。

<StackPanel Orientation="Horizontal" effects:Tilt.IsTiltEnabled="True" 
    Background="BlueViolet" Width="300" Height="100" > 
    <Image Source="Assets/SmallLogo.png"/> 
    <TextBlock Text="tap and watch the image blink" FontSize="20" /> 
</StackPanel> 
<StackPanel Orientation="Horizontal" effects:Tilt.IsTiltEnabled="True" 
    Background="Crimson" Width="300" Height="100" Grid.Row="1" > 
    <Image Source="Assets/SmallLogo.png"/> 
    <TextBlock Text="tap and watch the image blink" FontSize="20"/> 
</StackPanel> 

回答

0

您可以使用workaround:添加CacheMode="BitmapCache"<Image>