2

I am working on an Xamarin Forms project, and I need a ContentPage to display a few paragraphs, with an image.

I want to layout it out in a common way:

  1. The image takes up the top left quarter of the screen
  2. The text fills in the remaining three quarters.

How do I format my label to dynamically adjust to the image like that?

Cœur
  • 37,241
  • 25
  • 195
  • 267
falt86
  • 63
  • 9
  • Have you tried StackLayout? – Yuri S Nov 21 '16 at 18:26
  • 1
    Yes, I have tried stacked layout. By default, that just puts the image above the text. I want the image to the left of the first few rows, but once the text passes the image, it should expand to fill the entire width of the view. The image should appear embedded in the text, across multiple lines. How can this be achieved? – falt86 Nov 21 '16 at 19:00
  • stack layout should put text next to image. Can you paste your xaml ? Do you use vertical orientation? – Yuri S Nov 21 '16 at 19:44
  • You definitely can put text to the right of the image but to wrap it not sure about forms. It is possible in each platform. May be you need to implement that as View and create renderers in each platfrom. http://stackoverflow.com/questions/2248759/how-to-layout-text-to-flow-around-an-image and http://stackoverflow.com/questions/28082055/how-could-you-make-a-uilabel-wrap-around-an-image-like-shown – Yuri S Nov 21 '16 at 19:59

1 Answers1

0

I'd use a Stack Layout. This layout looks good and sorts quite well!

Best wishes

VRoxa
  • 973
  • 6
  • 25