I have a TextBox in WPF like so:
<TextBox Height="48" />
Nothing special, looks like this:

Now what I need to accomplish is to have clear and nice long line markers:

So basically I want to draw a line marker at position 50. I will use a fixed-width font to make this easier for myself so I can calculate the position easily.
Now the thing is, I don’t want to restrict typing over it, but I want it to give a visual glue when you reached the 50 character limit.
To make matters harder, I need this limit to be higher for the following lines/rows (72 characters) like so:

The line markers sharing the same position (rows 2 – n) could be a single line rather than multiple.
I’m also open to other suggestions, but as long as it offers a clean way to tell the user he is about to exceed the limit, I’m cool with it.
Note: I don’t want any text saying that “you have x characters left” or something. Space is limited and I want it to be visual.
Update: I would really appreciate if it was possible to add a tooltip so that when hovering a marker it stated its purpose to the user.
Since you want to visually decorate the Textbox, the first thing that pops to my mind is the aptly named Adnorner.
I have written a quick demo showing how to adorn a Textbox. The line drawing part is easy, the tricky part will be to figure out where the lines should be drawn. I have hard coded the line positions in my example. I supposed you would have to do some sort of text measuring to find out how tall your texts are(for the line height) and how long is 50 chars worth(to offset your lines by).
Here is the xaml:
And the code behind