When adding multiple controls to a StackPanel, it is necessary to set a margin for each control and maintain the same interval.