Search code examples
wpfxamlwindows-phonemicrosoft-metrowindows-10

XAML ListView - Stack items over each other


How can you have a ListView (or similar Object) stack its items over each other. Like a real-life stack of newspaper or post cards.


Solution

  • Found a solution:

    <ItemsControl>
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <Grid/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        <ItemsControl.Items>
            <TextBlock Text="hallo" />
            <TextBlock Text="welt" />
        </ItemsControl.Items>
    </ItemsControl>