Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Need a little help with how to lay something out in a custom ViewCell

$
0
0

Hello! Thanks for taking a look. I've attached an image of essentially what I'm trying to accomplish, as well as an image of my current custom ViewCell in action. I'm new to Xamarin Forms and just started this project recently, so there may be an obvious solution I'm unaware of. Here's the description:

I'm developing an application and I'm designing a reusable ViewCell. The ViewCell is essentially three parts:

  1. List of bound labels left aligned (Orange in the picture)
  2. List of bound labels right aligned (Blue in the picture)
  3. List of bound labels stretching the full length of the cell (Green in the picture)

I've gotten this to work 100% correctly down to one issue, TailTruncation. My original design was based on Grid where I would dynamically add rows to the grid based on the supplied data at run time. As I found out after completing my custom ViewCell, TailTruncation doesn't work for labels inside of a grid.

Does anyone have any advice on another way to accomplish this where TailTruncation would function appropriately? If you look at my CustomViewCell in the attached screenshot you can see that the values on the right get scrunched and wrap due to the description on the left not truncating. Is there another layout option that may work better, other than the Grid?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>