WrapPanel and Each

Hi, i think the combination of WarpPanel and each do something rare.

i should expect this code put the first WrapPanel like header and the second Wrappanel inside the Each like content, in general the view could be a grid. but works inverse.

if i add a StackPanel and put the Each inside it works, but in the version prior 5514 it was working fine without changes.

this is normal ?

thanks.

Hi :slight_smile:

Could you post some of your UX-markup so we can more easily see what causes this behavior?

I just learnt how to put the code :slight_smile:

<App Theme="Basic">
     <StackPanel>
        <WrapPanel FlowDirection="LeftToRight"  >
               <Text Value="Column one" Width="150" Background="Gray"/>
               <Text Value="Column two" Width="150" Background="Gray"/>
           </WrapPanel>
           <Rectangle Width="330" Height="2" Fill="#000000" Alignment="Left" />
           <Each Count="10">
               <WrapPanel FlowDirection="LeftToRight">
                <Text Value="Column one value" Width="150"/>
                <Text Value="column two value" Width="90"/>
                <Rectangle Width="330" Height="1" Fill="#000000" Alignment="Left" />
                </WrapPanel>
        </Each>
    </StackPanel>
</App>

thanks.

Hi!

You have to put the Each inside the WrapPanel. Like so:

<WrapPanel FlowDirection="LeftToRight">

    <Each Count="10">
        <Text Value="Column one value" Width="150"/>
        <Text Value="column two value" Width="90"/>
        <Rectangle Width="330" Height="1" Fill="#000000" Alignment="Left" />
    </Each>

</WrapPanel>

great, thanks!!!

regards