开发者

Color framed text in WPF

开发者 https://www.devze.com 2023-02-24 08:26 出处:网络
What approach can be taken, if not built in anyway, to frame the text of a TextBlock with a color? For in开发者_运维技巧stance white text with black borders.Convert the text to a geometry

What approach can be taken, if not built in anyway, to frame the text of a TextBlock with a color? For in开发者_运维技巧stance white text with black borders.


Convert the text to a geometry

A Geometry can be drawn using a Stroke (outline) and a Fill (inner brush)

See this page for examples

0

精彩评论

暂无评论...
验证码 换一张
取 消