在我的Windows8 C#应用程序中,当我有包含图像的控件并在其上应用来自Callisto的倾斜时,当第一次单击该控件时,图像会闪烁。这是相当令人不安的,特别是当使用它与自定义的“图像按钮”。
那么,有什么方法可以使这个控制不闪烁图像的倾斜?
要复制此问题,只需将其添加到新的Windows8 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>发布于 2013-09-09 12:17:19
您可以使用解决办法:将CacheMode="BitmapCache"添加到<Image>。
https://stackoverflow.com/questions/16775385
复制相似问题