How to hide specific row in windows grid

Aug 11, 2010 at 5:25 PM
Edited Aug 11, 2010 at 5:27 PM
WindowStartupLocation="CenterScreen" Width="450" ResizeMode="CanResize" > <Grid.RowDefinitions> <RowDefinition Height="30" /> <RowDefinition Height="130" /> <RowDefinition Height="Auto" Name="Row to Hide"/> </Grid.RowDefinitions> I wanted to hide a specific row. here i wanted to hide third row. In the third row i placed a stackpanel containing listbox and a button. On a click of button in second row, i need third row to open and show the listbox. i specified the stack panel visibility to collapsed but still on page load the third row is taking the space.. Please help