//boxItem要移动的控件 DoubleAnimation doubleAnimation = newDoubleAnimation(); doubleAnimation.Duration = newDuration (TimeSpan.FromSeconds(5)); TranslateTransform transform = newTranslateTransform(); boxItem.RenderTransform =transform; transform.X = 0; doubleAnimation.To = 100; transform.BeginAnimation(TranslateTransform.XProperty, doubleAnimation); }
WPF左右移动动画实现
免责声明:文章转载自《WPF左右移动动画实现》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇SpringCloud认识五之分布式锁和分布式事务基于Three.js、Go语言和MongoDB的免费开源的3D场景编辑器简介下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=