WPF
사각형 정보 에니메이션 - change bound of a element with animation
gsi
2007. 9. 20. 03:41
RectAnimation anima = new RectAnimation();
anima .From = new Rect(100, 100, 200, 200);
anima .To = new Rect(0, 0, 400, 400);
anima .Duration = new Duration(TimeSpan.FromSeconds(1));
anima .AutoReverse = true;
anima .RepeatBehavior = RepeatBehavior.Forever;
AnimationClock clock = anima .CreateClock();
dc.DrawRectangle(Brushes.Blue, null, new Rect(0, 0, 0, 0), clock);