dynamic - How do I set a Silverlight Grid layout ColumnDefinition width to "*" programatically? -
So I'm dynamically creating columns for a grid layout in Silverlight (V3.0, C #): < / P> and you can specify that the width of the column is "Auto" with But how can you set it "*" (share it with other columns)? I know that you can set it up in XML, but how do you do it in code? Layouts Column Definition. Add (New Column Definition ());
LayoutRoot.ColumnDefinitions.Add (New Column Definition () {Width = GridLength Eto});
A grid of the star grid with the type of internet type:
New Column width {width = new GridLength (1, GridUnitType.Star)};
The bonus is that this technology also supports proportional vacancy, that is equal to XAM2 *, 3 *, etc.
Comments
Post a Comment