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