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