Page 1 of 1

How to add BackgroundEffectBehavior on text?

Posted: 24 Nov 2026, 00:39
by el_BA
Hi all!

We're currently trying to get some effects on TextBlocks (specifically the overlay blending mode, which isn't supported unfortunately. I've talked to our graphics programmer and we can't add overlay ourselves either). I thought that maybe I could utilise the BackgroundEffectBehavior but it doesn't support text.

I'm happy to make my own custom behaviour which replicates the OG BackgroundEffectBehaviour but also supports text, but I'm unsure how to go about it -- I can find the bounds of the text, but not of the glyphs themselves. Is this possible? Is there another way I could achieve the Overlay blending mode on TextBlocks or do I have to tell the artists that this effect is unachievable? :(

Thanks in advance guys!