Giter Site home page Giter Site logo

Comments (7)

XamlFlair avatar XamlFlair commented on May 16, 2024 1

@ckpearson did an AnimatedListView give you the same behavior ? If you get a chance to go back to that issue, try testing it with both CanContentScroll="True" and then "False" to see if any help.

from xamlflair.

XamlFlair avatar XamlFlair commented on May 16, 2024

@ckpearson would you by any chance have a small sample project that reproduces the issue?

from xamlflair.

ckpearson avatar ckpearson commented on May 16, 2024

@XamlFlair Unfortunately not, however I've (for now) decided to not use the animated list controls, and instead go with an ItemsControl and just have a primary animation on each item there, that's done the trick.

from xamlflair.

ckpearson avatar ckpearson commented on May 16, 2024

Sadly not, AnimatedListView and AnimatedListBox both exhibit the behaviour of only animating the first element to be added.

I didn't test whether adding a bunch of items at the same time would result in those elements being animated.

But I've got a "test" button rigged that inserts an item into the collection each time it's clicked, and in all instances using the Animated(ListView/ListBox) controls only ever animated the first element.

The Loaded events on each element were being fired, so as far as I can tell I'd expect the animations to trigger on each element.

For now though, switching to an ItemsControl and just having each element in there have a Primary animation has fixed my initial issue.

from xamlflair.

ckpearson avatar ckpearson commented on May 16, 2024

@XamlFlair thanks for the suggestion! If I pick those controls up again I'll be sure to give it a go.

My guess is something is off about it determining whether to display the animation, perhaps for whatever reason it thinks they're not visible or something.

Pure speculation at this point sadly.

from xamlflair.

XamlFlair avatar XamlFlair commented on May 16, 2024

@ckpearson Thanks! Keep me posted. For reference, this is the method that is responsible for kicking off an item animation when you add one. I will eventually try to repro this and see if a fix is needed:

internal static void PrepareContainerForItemOverrideEx(this ListBox lb, DependencyObject element, ref bool isFirstItemContainerLoaded)

from xamlflair.

XamlFlair avatar XamlFlair commented on May 16, 2024

Closing due to inactivity.

from xamlflair.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.