private void CreateGifAnimation(MemoryStream memoryStream) { this.gifAnimation = new GifAnimation(); this.gifAnimation.CreateGifAnimation(memoryStream); this.gifAnimation.Stretch = this.Stretch; this.gifAnimation.StretchDirection = this.StretchDirection; this.AddChild(this.gifAnimation); }
private void DeletePreviousImage() { if (this.image != null) { this.RemoveLogicalChild(this.image); this.image = (Image)null; } if (this.gifAnimation == null) { return; } this.RemoveLogicalChild(this.gifAnimation); this.gifAnimation = (GifAnimation)null; }