Quantcast
Viewing latest article 39
Browse Latest Browse All 76418

Center content horizontally in xamarin forms DataGridColumn After wraping text

Image may be NSFW.
Clik here to view.

If the content is not wrapping the text will be centered however when the text wraps it will only alight to the left.

        columns.Add(new DataGridColumn { Title = StringConstants.StatusTitle, PropertyName = StringConstants.StatusProperty, HorizontalContentAlignment = LayoutOptions.Center,  Width =  new GridLength(0.35, GridUnitType.Star) });

Viewing latest article 39
Browse Latest Browse All 76418

Trending Articles