Replies: 1 comment 2 replies
-
|
There's been proposals of adding functionality like this to the Creating a highly extensible and dynamic control of this sort is not trivial though |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have noticed that there currently does not seem to be a simple, built-in way to animate a TextBlock when its text changes — for example, to provide an eased transition between the old and new text.
I think this could be a useful control for the Windows Community Toolkit, and I would be interested in working on it.
My current idea is to provide an AnimatedTextBlock control that allows users to define custom exit and enter animations directly in XAML. The control implementation would then be responsible for playing the exit animation for the old text, updating the displayed text, and playing the enter animation for the new text.
A possible API shape could look like this:
The expected result would be something like this:
2026-05-27.23-05-04.online-video-cutter.com.mp4
This would allow users to customize the transition behavior without having to manually duplicate TextBlocks, write Storyboards, or manage the old and new text states themselves.
Beta Was this translation helpful? Give feedback.
All reactions