Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 275
Pratik Avatar asked Feb 26 '23 00:02

Pratik


1 Answers

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);
like image 166
Francesco De Vittori Avatar answered May 15 '23 18:05

Francesco De Vittori