I would like to know if it is possible to show the line numbers (in a separate column) of a RichEditBox in UWP C#, or if there are other ways to get it. I'm looking for a solution to this problem... And it seems odd to me that there is no documentation about it: i need only a simple text editor. There are a lot of applications for Windows 10 that implement it and I refuse to think that it is not possible.
This is just an example from CodeWriter, a code editor application. Any idea?
I achieve a "result" thinking about a list and the RichEditBox. Now, the solution isn't good, after about 50 lines typing it's laggy as hell, but at least I tried, 'cos the question is important also for me.
So, I designed a ListView and RichEditBox in a Grid with two columns
At the code behind I added this one:
I think the .clear() method and readding all the lines every time is n't a good practice. But if you need a quick solution on max 50 lines, this MAYBE is the way.