title: Xamarin Forms - Why Is LineBreakMode TailTruncation Causing Word Wrap
body: <p>In a Xamarin Forms project (C# code, not XAML), I have a some nested horizontal stacklayouts that look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/u7c3R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7c3R.png" alt="enter image description here"></a></p>
  
  <p>Notice there's a "Declined:" Label, then a quantity Label (4), and then a reason code Label ("Can't Find"). I have set the reason code Label to a LineBreakMode of <code>LineBreakMode.TailTruncation</code>. I would expect that when the label gets too long to fit on the line, it would truncate it with ellipses. It does. <strong>However</strong>, it doesn't do it gracefully - it causes things to be squished and to word wrap, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/r6aPz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r6aPz.png" alt="enter image description here"></a></p>
  
  <p>I have set the "Declined:" Label to <code>LineBreakMode.NoWrap</code>, and you'll notice the last "d" in "Declined" is cut off". I haven't set any LineBreakMode on the "Ordered" and "Picked" Labels, and you'll notice those word wrap. Why is this happening, and how can I fix it?</p>