Reputation: 619
Is there a way to change the order of the controls inside a StackPanel at runtime?
Many thanks,
Paulo
Upvotes: 4
Views: 4504
Reputation: 292705
stackPanel1.Children.Remove(item);
stackPanel1.Children.Insert(newIndex, item);
Upvotes: 15