4

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..."});
4

1 に答える 1

0

それらをグリッド内の2つの異なる列に配置することをお勧めします...

于 2012-09-11T03:06:57.360 に答える