Wrap text around an image in a TextBlock

How to wrap text around an image in a TextBlock?

The text is always at the bottom ...

What is the basic approach in general?

enter image description here

Thanks!

var image = new BitmapImage(); image.BeginInit(); image.CacheOption = BitmapCacheOption.OnLoad; image.CreateOptions = BitmapCreateOptions.IgnoreImageCache; image.UriSource = new Uri(@"http://cl.jroo.me/z3/P/0/C/d/a.aaa-bad-crazy-cat.jpg", UriKind.Absolute); image.EndInit(); var imageInline = new InlineUIContainer { Child = new Image { Source = image } }; textBlock1.Inlines.Add(imageInline); textBlock1.Inlines.Add(new Run{ Text = "any text goes here..."}); 
+4
source share
1 answer

I would suggest placing them in two different columns in the grid ...

0
source

Source: https://habr.com/ru/post/1433412/


All Articles