Physical Document Content Margins

SyntaxEditor for WPF Forum

Posted 10 years ago by Simon Rose
Version: 11.2.0554



I'm sure this is easily possible and I'm looking in the wrong place, but I want to be able to "indent" [margin] the document content, that is the text within the scrollable region the syntax editor has.

I've used Snoop to get a look at the visual tree and played with setting on the margin at various levels and the following gets just what I need:








                                   Grid <- set margin of 5 here perfectly indents the text content and keeps line/selection margin content inline but doesn't move scrollbars of the overall control

Is it possible to do something like this? I hope I've explained properly.



Comments (1)

Answer - Posted 10 years ago by Simon Rose

I've actually gotten round this with a stroke of luck. I set BorderThickness to 0 and I now have a more plush edging, so all is ok.



The latest build of this product (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.