mmanela/diffplex

LineNumberWidth error occured

kykm1307 opened this issue · 2 comments

I had use diffplex.wpf from nuget to implement into my windows form project. However it prompt this error.
Annotation 2021-09-02 134435
and when I run as single view it wont show words as screenshot below
Annotation 2021-09-02 134630

@kingcean can you take a look?

Hi @kykm1307 could you please share your code about it to me if you don't mind? Or compare it with the one in demo?

I have tested it by modifying the demo code, but it looks good in my dev environment. It initializes an instance of DiffPlex.WindowsForms.Controls.DiffViewer control class and sets LineNumberWidth as an Int32 value.

Screenshot 2021-09-04 224954

The binary of the original demo is here (net5.0-windows\DiffPlex.WindowsForms.Demo.exe).