private void CreateGifAnimation(MemoryStream memoryStream) { _gifAnimation = new GifAnimation(); _gifAnimation.CreateGifAnimation(memoryStream); _gifAnimation.Stretch = Stretch; _gifAnimation.StretchDirection = StretchDirection; this.AddChild(_gifAnimation); }