Question

Is there a way to change the order of the controls inside a StackPanel at runtime?

Many thanks,
Paulo

Was it helpful?

Solution

stackPanel1.Children.Remove(item);
stackPanel1.Children.Insert(newIndex, item);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top