Skip to content

Nested ItemsView Items stays highlighted on PointerOver #10314

@morning4coffe-dev

Description

@morning4coffe-dev

Describe the bug

When nesting an ItemsView control inside another ItemsViews Item (or ItemsRepeater) the Items inside stay highlighted after hovering on them. This happens with all the new major versions and 1.7 experimental as well.

Steps to reproduce the bug

<ItemsRepeater ItemsSource="{x:Bind Categories, Mode=OneWay}">
    <ItemsRepeater.ItemTemplate>
        <DataTemplate x:DataType="local:Category">
            <ItemContainer>
                <StackPanel DataContext="{x:Bind}">

                    <TextBlock Text="{x:Bind Label}"
                               HorizontalAlignment="Center"
                               FontSize="20"
                               Margin="0,10,0,10" />

                    <ItemsView ItemsSource="{x:Bind}">
                        <ItemsView.ItemTemplate>
                            <DataTemplate x:DataType="local:Item">
                                <ItemContainer>
                                    <TextBlock Text="{x:Bind Label}"
                                               HorizontalAlignment="Center" />
                                </ItemContainer>
                            </DataTemplate>
                        </ItemsView.ItemTemplate>
                    </ItemsView>

                </StackPanel>
            </ItemContainer>
        </DataTemplate>
    </ItemsRepeater.ItemTemplate>
</ItemsRepeater>

NestedItemsViewHighlighting.zip

Expected behavior

No response

Screenshots

nested-itemsview-highlighting.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

Windows Insider Build (xxxxx)

Additional context

Related to unoplatform/uno#19180

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions