How to paint notebook-like lines as TextBox background?

南笙酒味 提交于 2019-12-11 22:14:52

问题


A bit similar to this question.

My aim is to evocate a notebook-like look of the textbox.

OneNote does something similar, by setting background image of the editing surface. Of course it is not possible to align the lines in OneNote because the text can be freely formatted.

I would like to do this with constant font (no formatting) in WPF. How to paint lines in textbox background that will match the lines of text?


回答1:


I asked the same question here: Repeat a background brush in WPF

It would be easy to convert to a TextBox.

Best of luck!



来源:https://stackoverflow.com/questions/4041642/how-to-paint-notebook-like-lines-as-textbox-background

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!