XML control layout in StackPanel

I have a lot of elements in my XAML code that i need to switch between visible and collapsed in my main code...

I have tried to create a parent of type StackPanel for all those elements. But now it messes up all the child element positions (it scatters them all over the place).

Is there any way to set that the parent does not control the position of the child and only controls the Visibility property... Or is there any other type of element used for parenting and grouping ?

Related to : XML control layout in StackPanel

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .