Skip to content

ItemsStackPanel not playing well with ItemsControl #16531

Open

Description

@erikvilima

Current behavior

On Desktop the items are overlaying each other.
On Android the ItemsControl doesn't show anything.
On WASM nothing is displayed, not even the TextBlock.

Code

<TextBlock Text="ItemsControl" FontSize="20"  Margin="10" />

<ItemsControl ItemsSource="{Binding SampleData}">
  <ItemsControl.ItemTemplate>
    <DataTemplate>
      <TextBlock Text="{Binding}" />
    </DataTemplate>
  </ItemsControl.ItemTemplate>
  <ItemsControl.ItemsPanel>
    <ItemsPanelTemplate>
      <ItemsStackPanel Orientation="Horizontal" />
    </ItemsPanelTemplate>
  </ItemsControl.ItemsPanel>
</ItemsControl>
public class MainViewModel
{
    public List<string> SampleData { get; set; }

    public MainViewModel()
    {
        SampleData = new List<string>
        {
            "Item 1",
            "Item 2",
            "Item 3",
        };
    }
}

Desktop

image

Android

image

WASM

Doesn't show anything at all

Expected behavior

Windows

image

How to reproduce it (as minimally and precisely as possible)

Repro app -> UnoApp8.zip

Workaround

Use StackPanel instead of ItemsStackPanel.

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

"Uno.Sdk": "5.2.108"

<UnoExtensionsVersion>4.1.14</UnoExtensionsVersion>
<UnoToolkitVersion>6.0.18</UnoToolkitVersion>
<UnoThemesVersion>5.0.13</UnoThemesVersion>

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

If I use ListView instead of ItemsControl it works everywhere, but Android doesn't.
If I use StackPanel instead of ItemsStackPanel it works everywhere.

Activity

  1. added
    kind/bug
    triage/untriaged
    difficulty/tbd
    on May 1, 2024
  2. agneszitte commented on May 1, 2024

    @agneszitte
    Member
  3. added
    project/items 🧾
    difficulty/challenging 🤯
    and removed
    triage/untriaged
    difficulty/tbd
    on May 3, 2024
  4. changed the title [-]ItemsStackPanel not playing well with ItemsControl[/-] [+]`ItemsStackPanel` not playing well with `ItemsControl`[/+] on May 3, 2024
  5. agneszitte commented on May 8, 2024

    @agneszitte
    Member

    @eriklimakc is this a blocker for a project or a solution please?

  6. erikvilima commented on May 9, 2024

    @erikvilima
    ContributorAuthor

    @eriklimakc is this a blocker for a project or a solution please?

    No, not a blocker at the moment.

    cc @agneszitte

  7. added theissue type on Jun 20, 2025
  8. ADD-JoseRamon-Guillen commented on Oct 6, 2025

    @ADD-JoseRamon-Guillen

    Hi @agneszitte, this issue is also affecting us, although it is not a blocker. Could you add it to our project/backlog?

  9. github-actions commented on May 3, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  10. added
    stale
    on May 3, 2026
  11. removed
    stale
    on May 4, 2026
  12. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  13. added
    stale
    on Oct 17, 2026
  14. ADD-Eugenio-Lopez commented on Oct 19, 2026

    @ADD-Eugenio-Lopez

    We are still interested in this issue to be solved.

  15. removed
    stale
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/challenging 🤯kind/bugproject/items 🧾

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions