问题
Is there a way to change the order of the controls inside a StackPanel at runtime?
Many thanks,
Paulo
回答1:
stackPanel1.Children.Remove(item);
stackPanel1.Children.Insert(newIndex, item);
来源:https://stackoverflow.com/questions/1398548/wpf-stackpanel-controls-order