Inheritance: System.Windows.Controls.Viewbox
Example #1
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     _gifAnimation = new GifAnimation();
     _gifAnimation.CreateGifAnimation(memoryStream);
     _gifAnimation.Stretch          = Stretch;
     _gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(_gifAnimation);
 }
Example #2
0
 private void DeletePreviousImage()
 {
     if (_image != null)
     {
         this.RemoveLogicalChild(_image);
         this.Content = null;
         _image       = null;
     }
     if (_gifAnimation != null)
     {
         this.RemoveLogicalChild(_gifAnimation);
         this.Content  = null;
         _gifAnimation = null;
     }
 }
Example #3
0
            public void NextFrame(object sender, EventArgs args)
            {
                GifAnimation b = (GifAnimation)this.Target;

                if (b != null)
                {
                    b.NextFrame(sender, args);
                }
                else
                {
                    DispatcherTimer c = sender as DispatcherTimer;
                    if (c != null)
                    {
                        c.Tick -= new EventHandler(this.NextFrame);
                    }
                }
            }
Example #4
0
 private void DeletePreviousImage()
 {
     if (_image != null)
     {
         this.RemoveLogicalChild(_image);
         this.Content = null;
         _image = null;
     }
     if (_gifAnimation != null)
     {
         this.RemoveLogicalChild(_gifAnimation);
         this.Content = null;
         _gifAnimation = null;
     }
 }
Example #5
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     _gifAnimation = new GifAnimation();
     _gifAnimation.CreateGifAnimation(memoryStream);
     _gifAnimation.Stretch = Stretch;
     _gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(_gifAnimation);
 }
Example #6
0
 public WeakContainer(GifAnimation target)
     : base(target)
 {
 }
Example #7
0
 public WeakContainer(GifAnimation target) : base(target)
 {
 }