Beispiel #1
0
 public static void LoopCount(PonyWindow win, double count)
 {
     ImageBehavior.SetRepeatBehavior(
         win.Image,
         new System.Windows.Media.Animation.RepeatBehavior(count)
         );
     return;
 }
Beispiel #2
0
 public static void LoopCount(PonyWindow win, double count)
 {
     ImageBehavior.SetRepeatBehavior(
         win.Image,
         new System.Windows.Media.Animation.RepeatBehavior(count)
     );
     return;
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }