Setting ColumnDefinitions in code Setting ColumnDefinitions in code wpf wpf

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);