I am doing a 3D rotation in a grid using a PlaneProjection
:
<Storyboard> <DoubleAnimation Storyboard.TargetProperty="RotationY" Storyboard.TargetName="projection" Duration="0:0:1" To="180" /> </Storyboard> <Grid.Projection> <PlaneProjection x:Name="projection" /> </Grid.Projection>
The problem is that at the end of this animation my TextBlock
gets a little blury like this:
Before Rotation:
After Rotation:
Notice that I have already inverted the image. Basicly I do 2 animations (one to 90 degrees) and then I apply a scaleX
to -1, and then I end the animation.
Already tried some solutions to fix this like the one suggested in this topic of stackoverflow or even in this forum.
However, I can't find a way to fix this bug. I belive my solution needs a PlaneProjection
(or does it?) but in fact I want to rotate two columns of images and text at the same time in oposite directions and PlaneProjection kinda simplifies that approach (since I can rotate a complete Grid). Also, from what I have read this approach uses GPU aceleration :/.
Answer: 1
Have you already tried the "UseLayoutRounding" Property?
http://www.switchonthecode.com/tutorials/wpfs-most-important-property-uselayoutrounding
by : Martinhttp://stackoverflow.com/users/772589
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog