WrapPanel not wrapping when in a StackPanel with Horizontal orientation
问题 The labels in the example below (WPF/XAML) just parade off the screen, no wrapping occurs. Removing the orientation works, but doesn't provided the needed functionality/look & feel. Any ideas how to make the WrapPanel wrap to the current size of the StackPanel ? <Window Height="300" Width="600"> <StackPanel Orientation="Horizontal"> <WrapPanel> <Label Height="28" Name="label1" Width="120">First Name</Label> <Label Height="28" Name="label2" Width="120">John</Label> <Label Height="28" Name=