mmanela / diffplex

DiffPlex is Netstandard 1.0+ C# library to generate textual diffs.
Apache License 2.0
996 stars 183 forks source link

Any example for winform? #51

Closed chuki2 closed 3 years ago

chuki2 commented 4 years ago

Do you have any example for winform?

Thanks in advance

VPKSoft commented 4 years ago

Hi, I made a class library containing a Windows Forms control. This is for Scintilla though 🙄

mmanela commented 4 years ago

That is awesome @VPKSoft . If you want to, please send a PR to add a section on the README of Diffplex to link to your cool work.

VPKSoft commented 4 years ago

I'll do that if I have the time - anyhow, thanks for the great library! 👍

kingcean commented 4 years ago

@chuki2 You can add an ElementHost control (in System.Windows.Forms.Integration namespace and you can find it in Toolbox of Visual Studio) into your form and set its Child property as one of DiffViewer, SideBySideDiffViewer and InlineDiffViewer (in DiffPlex.Wpf.Controls namespace of DiffPlex.Wpf assembly).

image

kingcean commented 3 years ago

@mmanela I think you can close this issue since I have sent PR for demo as well as I post the comment here a year before.

mmanela commented 3 years ago

Merged!