The problem i have is that if i hide “panel1” nothing appears but it shows an empty space. I guess i have to remove the panel instead of hidding it (as i want it to be inside the scroll)… or maybe i have to attack it from a different angle…
Have you tried giving Panel1 the Visibility attribute? To hide it:
<Panel ux:Name="Panel1" Visibility="Collapsed"/>
To show it:
<Panel ux:Name="Panel1" Visibility="Visible"/>
I think that should make it act as if it doesn’t exist when hidden. As for hiding/showing on the result of a query, if you’re talking a JavaScript query then you could databind it like so: