如何在 TextBlock 中的图像周围环绕文本?
文字总是在底部...
一般有哪些基本做法呢?
谢谢!
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..."});