Is there a way of hiding a Silverlight Grid Row at runtime?
Does anyone have an idea on how to hide a grid row 开发者_高级运维at runtime?
You cannot set its Visibility, the only way to do it is to set its height to 0. Assuming the grid's name is LayoutRoot and you want to hide the first row:
LayoutRoot.RowDefinitions[0].Height = new GridLength(0);
精彩评论