문제

In my Windows 8 C# app when I have control containing image and I apply the Tilt from Callisto on it, then when this control is clicked for the first time, the image blinks. It's quite disturbing especially when using it with custom "image buttons".

So is there a way how to make this control tiltable without image blinking?

For reproducing this issue just add this into new Windows 8 C# SplitApp project, add the Callisto NuGet package and comment the default GridView and 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>
도움이 되었습니까?

해결책

You can use a workaround: add CacheMode="BitmapCache" to <Image>.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top