xamlwindows-runtimewinrt-xamlinlineuicontainer

How to fill WinRT/XAML paragraph with variable height element?


Suppose I have a RichTextBlock with 2 paragraphs. The second paragraph is just some text. The first paragraph is a FlipView with images like a slideshow. What properties on the <Paragraph> or the <InlineUIContainer> or the <FlipView> should I set so that if the FlipView's images have different heights, the second paragraph text would move to stack just underneath the image in the FlipView?


Solution

  • I don't think you can with a FlipView.

    The FlipView will have a rectangular clipping to make sure none of the other items appear in the view box. The dimensions (width/height) of this view box are based on the values you explicitly set, or chosen by the parent container. They do not change based on the images inside the FlipView.