GSI

'RectAnimation'에 해당되는 글 1건

  1. 2007.09.20 사각형 정보 에니메이션 - change bound of a element with animation

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);

Posted by gsi
: