Inheritance: System.Windows.Controls.Viewbox
Beispiel #1
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     _gifAnimation = new GifAnimation();
     _gifAnimation.CreateGifAnimation(memoryStream);
     _gifAnimation.Stretch          = Stretch;
     _gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(_gifAnimation);
 }
Beispiel #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;
     }
 }
Beispiel #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);
                    }
                }
            }
Beispiel #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;
     }
 }
Beispiel #5
0
 private void CreateGifAnimation(MemoryStream memoryStream)
 {
     _gifAnimation = new GifAnimation();
     _gifAnimation.CreateGifAnimation(memoryStream);
     _gifAnimation.Stretch = Stretch;
     _gifAnimation.StretchDirection = StretchDirection;
     this.AddChild(_gifAnimation);
 }
Beispiel #6
0
 public WeakContainer(GifAnimation target)
     : base(target)
 {
 }
Beispiel #7
0
 public WeakContainer(GifAnimation target) : base(target)
 {
 }