Independent width in a WPF Grid
问题 I have a grid with 2 rows and 2 columns in WPF. I would like that the column widths are independent for each row. I tried "auto", but no success. Here is a picture in order to explain: How can I accomplish this using grid? 回答1: If you must use a grid layout, then you have a couple of options: Option 1: Make each row a single column and then nest a grid in each row you would like independent columns: XAML <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions>