Forum Xamarin.Forms

Custom Cells

15mgm1515mgm15 USMember ✭✭✭✭

Is there a property for a text field inside a TextCell to achieve this?

Or do I have to I have to create a custom cell like: (Tim Sneed)

public class CustomCell : ViewCell
    {
        public CustomCell()
        {
            Grid grid = new Grid
            {
                Padding = new Thickness(5, 10, 0, 0),
                ColumnDefinitions =
                {
                    new ColumnDefinition { Width = new GridLength(10, GridUnitType.Star) },
                    new ColumnDefinition { Width = new GridLength(2, GridUnitType.Star) },
                    new ColumnDefinition { Width = new GridLength(25,GridUnitType.Absolute)}, 
                    new ColumnDefinition { Width = new GridLength(2, GridUnitType.Star) },
                    new ColumnDefinition { Width = new GridLength(10, GridUnitType.Star)  },
                },
            };

Posts

  • MarshallMarshall USMember ✭✭

    yes, if you wanted to customize a viewcell, you would have to inherit of the viewcell, and customize the position of items within it

Sign In or Register to comment.