Skip to content

How to get the ItemContainer from itemsview winui3 #10537

Closed Answered by Strypper
Strypper asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I actually don't need to depend on the TryStartConnectedAnimationAsync to animate I can actually do this

    private async void Section2ItemRepeater_Loaded(object sender, RoutedEventArgs e)
    {
        if (ViewedItem is null || ViewedUIElement is null)
            return;

        ConnectedAnimation animation = ConnectedAnimationService.GetForCurrentView().GetAnimation("BackConnectedAnimation");
        if (animation is null)
            return;

        animation.TryStart(ViewedUIElement);
    }

    private void Section2ItemRepeater_ItemInvoked(Microsoft.UI.Xaml.Controls.ItemsView sender, Microsoft.UI.Xaml.Controls.ItemsViewItemInvokedEventArgs args)
    {
        var selectedCard = 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Strypper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant