3

WrapGrid makes the TextBlocks effectively disappear. The outline of the item is shown, but the text cannot be seen. During runtime the items appear correctly.

How to make them appear during design time?

 <ListView HorizontalAlignment="Left">
        <ListView.ItemsPanel>
            <ItemsPanelTemplate>
                <WrapGrid Orientation="Horizontal" MaximumRowsOrColumns="3"></WrapGrid>
            </ItemsPanelTemplate>
        </ListView.ItemsPanel>
        <ListView.Items>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
            <TextBlock>LOREM IPSUM</TextBlock>
        </ListView.Items>
    </ListView>
O.O
  • 11,077
  • 18
  • 94
  • 182

1 Answers1

1

I found the answer here: The content of a ListView with ItemsPanel modified is not shown in designer (VS and Blend).

Basically it's a known bug, they suggest use ItemsWrapGrid instead of WrapGrid.

Community
  • 1
  • 1