A TextBlock control which animates the text with customizable effects.
MIT License
A TextBlock control which animates the text with customizable effects.
TextBlockFx generates difference results for attached effect to animate the text when its content changes by using its built-in diffing algorithm.
https://user-images.githubusercontent.com/8193074/147348037-efe70068-d188-4a26-a23a-c94e2b03ede9.mp4
In Solution Explorer panel, right click on your project name and select Manage NuGet Packages. Search for TextBlockFX.Win2D.UWP
then click install to install the package.
Or enter the following command in Package Manager Console to install it:
Install-Package TextBlockFX.Win2D.UWP -Version 1.0.3
In your XAML page, add a reference at the top of your page:
xmlns:tbfx="using:TextBlockFX.Win2D.UWP"
xmlns:effects="using:TextBlockFX.Win2D.UWP.Effects"
Then add TextBlockFX to your page:
<tbfx:TextBlockFX Text="Your text here">
<tbfx:TextBlockFX.TextEffect>
<effects:Default/>
</tbfx:TextBlockFX.TextEffect>
</tbfx:TextBlockFX>
Feature | UWP(Win2D) | WinUI3(Win2D) |
---|---|---|
FontFamily | ||
FontSize | ||
FontStretch | ||
FontStyle | ||
FontWeight | ||
TextAlignment | ||
TextDirection | ||
TextTrimming | ||
TextWrapping |
: Supported
: WIP
TextBlockFX only support UWP projects for now. WinUI3 support and Skiasharp based implementation for other platform targets are WIP.
ITextEffect
interface.