Ghost1372

everything can be handy

AnimatedTextBlock

A TextBlock control which animates the text with customizable effects.

Property

Name
Text
TextEffect
TextAlignment
TextDirection
TextTrimming
TextWrapping

Events

Name
RedrawStateChanged

Effects

Name
TextDefaultEffect
TextBlurEffect
TextElasticEffect
TextMotionBlurEffect
TextPivotEffect
TextZoomEffect

Example

1
2
3
4
5
<dev:AnimatedTextBlock Text="DevWinUI">
<dev:AnimatedTextBlock.TextEffect>
<dev:TextDefaultEffect/>
</dev:TextBlockFX.TextEffect>
</dev:AnimatedTextBlock>

You can Write Your Own Effects. Define a new effect class and implement the ITextEffect interface.
Draw the text by using Win2D API.

Use AnimatedTextBlock inside a Grid. If you place it in a StackPanel or other panels, make sure to set its width and height; otherwise, the control will not be visible.

AnimatedTextBlock

Demo

you can run demo and see this feature.

0%