Setting ColumnDefinitions in code
You will need to create an instance of the GridLength
data type and specify GridUnitType.Star
col.Width = new GridLength(1, GridUnitType.Star);
You will need to create an instance of the GridLength
data type and specify GridUnitType.Star
col.Width = new GridLength(1, GridUnitType.Star);