Hello!
I'm trying to bind the cell in a list as follows
var listCell = new DataTemplate(typeof(TextCell));
listCell.SetBinding(TextCell.TextProperty, "PrimaryText")
listCell.SetBinding(TextCell.DetailProperty, "SecondaryText");
myList.ItemTemplate = listCell;
I would like the SecondaryText to always show up as it is a short, but important piece of information. I know to make some text truncate with the end being "..." I can typically use the property:
LineBreakMode = LineBreakMode.TailTruncation
Is there a way to easily do this to the code I have without creating my own cell class? I know it would be an easy thing to add but I'd rather not add classes unnecessarily and I would also like to know this for future reference in case I run into more situations like this where I just need to make a lightweight modification.
Thank you!