In WPF, I have a TextBox
with a BackgroundProperty
set to a custom brush. I want to give this brush some kind of visual buffer from the border of the TextBox
. The brush is a GlyphRunBrush
which acts much like an ImageBrush
, but has a rasterized glyph run as the brush source.
How can I do this?
Example: