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

Grid rows extending vertically over the Grid Height

$
0
0

Hi,

I currently have the issue that the rows of a grid extend over the height of the grid and overlay other layouts defined after the grid.

I defined my grid in a vertical layout like this:

<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>





</Grid.ColumnDefinitions>

I'm adding rows to the grid using statements like this:
employeeDetailGrid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
var emailPhoneLabel = new Label { Text = "E" };
//emailPhoneLabel.Style = Application.Current.Resources["mLabelStyle"] as Style;
emailPhoneLabel.SetDynamicResource (Label.StyleProperty, "mLabelStyle");
employeeDetailGrid.Children.Add (emailPhoneLabel, 0, rowIndex); // column, row
rowIndex++;

Is there anything I should be doing differently in order for the Grid to adjust to my combined row height? Unfortunately I can't define a fixed row height since I don't know if the rows content will wrap.

Please let me know.

Thanks!


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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