You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
This article shows how to show text that can be wrapped around an image in XAML. Figure AIn the preceding screen shot, we can see the news headline of the Microsoft Bing News app. Both of the news has an image and news title because the title cannot be accomodated in the first three rows due to its length, the reason being the Text has been wrapped with the images that is shown above.If the text is not wrapped around the image, it still looks good but not the best. Figure BThe problem is if the title of the news is too long then without wrapping there is a lot of white space left that cannot be used as shown in Figure C. Figure CTo achive this in XAML we will use the "RichTextBlock" to show text and "RichTextBlockOverflow". The only purpose of RichTextBlockOverflow is to display text content that does not fit in the bounds of a RichTextBlock or another RichTextBlockOverflow element.I used two Grids, a parent and a child Grid. The parent grid contains 2 rows and 1 column.Parent Grid Figure D