How to change character spacing in XAML in textbox?

How to change the spacing between characters in a WPF application in a text block. Also known as kerning or character tracking.

+8
character wpf xaml spacing kerning
source share
2 answers

answer on social.msdn suggests using Glyphs .

In addition, FontStretch allows FontStretch to perform some customization.

+7
source share

Perhaps you can add Behavior for this TextBox that will go through each character and add a space after it.

Alternatively, if you are using DataBinding, use a converter with the same logic.

And if you want to outwit, you can create a custom control that inherits from the TextBox and implements this distance logic. It will also allow you to add a Dependency property, something like โ€œNumOfSpacesโ€, and you could control how many spaces it would put

-2
source share

All Articles