有关Scatterview渲染的帮助 [英] Help on Scatterview rendering
问题描述
亲爱的,
我有一个散点图,我动态添加iitems。
我需要做的是当散点图时项目显示,我需要应用ScaleTransform,以便对用户有一种放大效果。
I have a scatterview on which I am adding iitems dynamically.
What I need to do is that when the scatterview items gets displayed, I need to applying a ScaleTransform in order to have a kind of Zoom in effect to the user.
我有的问题是,只要项目获得添加到teh scatterview集合你不能改变任何东西。
The problme i have is that it seems that as long as the items gets added to teh scatterview collection you cannot change anything.
例如我尝试使用简单的opacity属性。当我添加我的scatterview项时,我将其不透明度设置为0.
For example I have try with the simple opacity property. When I add my scatterview item I set its opacity to 0.
然后在scattyerviwItem_Loaded事件中,我执行以下操作:
Then at the scattyerviwItem_Loaded event I do as follwo :
DoubleAnimation opacityAnimation = new DoubleAnimation(0,1, TimeSpan.FromSeconds(1), FillBehavior.Stop);
svi.BeginAnimation(ScatterViewItem.OpacityProperty, opacityAnimation);
推荐答案
两个选项:
1。您可以在SVI中放置一个画布,并在一段时间内显示内容的缩放版本(超出SVI界限)。
1. you could have a canvas inside your SVI and shows a scaled version of the content (that sticks out of the SVI bounds) for a bit of time.
- 或 -
2。您可以在项目实际添加到ScatterView之前在不同的图层上执行动画。
2. You could perform the animation on a different layer before the item actually gest added to the ScatterView.
这篇关于有关Scatterview渲染的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!