0
A
回答
3
你应该从代码,当你更新TextBlock的文字动画容器的宽度:
// right before updating the text:
textBlock.Text = "hello";
textBlock.UpdateLayout();
// animation is a DoubleAnimation
animation.From = container.ActualWidth;
animation.To = textBlock.ActualWidth;
// storyBoard is a Storyboard that contains animation and targets container.Width
storyBoard.Begin();
我怕你不仅可以用XAML做到这一点。
相关问题
- 1. CSS动画平滑变宽
- 2. silverlight导航动画不平滑
- 3. JQuery的动画(增加IMG的宽度)平滑
- 4. WPF平滑动画
- 5. 平滑SVG动画
- 6. 平滑Flash动画
- 7. 平滑animateLayoutChanges动画
- 8. CSS画布圆平滑度
- 9. Silverlight动画不光滑
- 10. 平滑的线条宽度在画布行中更改为
- 11. ExpandableLayout动画不平滑
- 12. Jquery倒数平滑动画
- 13. 平滑的彩色动画
- 14. Slidingbar .js动画不平滑
- 15. Android平滑图像动画
- 16. QStackedWidget上的平滑动画
- 17. 平滑动画停止
- 18. 平滑(动画)GUI过渡
- 19. 使用QGraphicsScene平滑动画
- 20. 平滑动画的图
- 21. jQuery动画更平滑吗?
- 22. 使用GTK +平滑动画+
- 23. 动态宽度的水平滚动/滑动菜单
- 24. CSS3动画宽度
- 25. 滑动悬停链接动画的自动宽度
- 26. jQuery的进度条宽度和数字动画不光滑
- 27. jquery滑块:平滑点击动画
- 28. jQuery的动画不会滑动宽度,但会触发
- 29. 如何滑动并按顺序在一起动画宽度
- 30. firefox中的jQuery动画速度(平滑度)4