public static void LoopCount(PonyWindow win, double count) { ImageBehavior.SetRepeatBehavior( win.Image, new System.Windows.Media.Animation.RepeatBehavior(count) ); return; }
public void ApplyToPonyWindow(PonyWindow win) { if (this.img == null) { return; } // resize the window to fit this image. win.Width = this.img.Width; win.Height = this.img.Height; // set the image element to the animated gif. ImageBehavior.SetAnimatedSource(win.Image, this.img); }
public void ApplyToPonyWindow(PonyWindow win) { if(this.img == null) return; // resize the window to fit this image. win.Width = this.img.Width; win.Height = this.img.Height; // set the image element to the animated gif. ImageBehavior.SetAnimatedSource(win.Image,this.img); }