Skip to content

TreeView. Animate when updating the list #3289

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

You must be logged in to vote

@Frillaut I had a look at your sample, and I can indeed reproduce the animation that occurs when IsVirtualizing=True and VirtualizationMode=Recycling. Changing to VirtualizationMode=Standard "fixes" the issue, just like setting IsVirtualizing=False. However, I assume you would like the settings applied, and avoid the animations.

Unfortunately, the MDIX style/template for the TreeViewItem explicitly applies these animations using visual states and visual transitions. These do not lend themselves well to extendibility, nor do they allow bindings (so an attached property could be used). So the only real option you're left with, apart from manipulating the visual states in runtime in your cod…

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Frillaut
Comment options

Comment options

You must be logged in to vote
1 reply
@Frillaut
Comment options

Comment options

You must be logged in to vote
13 replies
@Frillaut
Comment options

@nicolaihenriksen
Comment options

@Frillaut
Comment options

@nicolaihenriksen
Comment options

Answer selected by Frillaut
@Frillaut
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants