22

In continuation of the my previous question, are the any good controls for text diffs visualization?

Something like StackOverflow's revision diff viewer but for WinForms or WPF

Requirements:

  • free, preferably open-source
  • based on WPF or WinForms

No apps please, only components.

I'm not interested in OSS diff tools

Community
  • 1
  • 1
aku
  • 119,266
  • 32
  • 169
  • 202

4 Answers4

12

There is (as part of GitSharp) an open source diff engine in c# with a very easy to use API and (as part of GitSharp.Demo) a WPF diff viewer. The code should not be too difficult to extract from the project.

Find more information here: http://www.eqqon.com/index.php/GitSharp#GitSharp.Demo

Marijn
  • 10,097
  • 5
  • 56
  • 78
henon
  • 1,463
  • 14
  • 18
9

might also want to take a look at MeneesDiffUtils. Has a bunch of diff related utils including a visualization control. Full source code provided and is under a license called CharityWare.

Jake Almer
  • 671
  • 9
  • 15
  • 1
    There is a [WPF project](https://github.com/Dirkster99/Aehnlich) that looks at porting the implementation from Bill Menees over to WPF – user8276908 Mar 06 '19 at 19:58
4

I never heard about a specific .NET component for diff visualization (it's kind a niche), but perhaps you could rely on advanced editor to build your own without too much trouble.

Syncfusion proposes a complete component suite dedicated to text/code edition, with a lot of built in features that you might find useful :

Important note : it is not free.

Romain Verdier
  • 12,593
  • 7
  • 54
  • 77
3

I recommend DiffPlex. It is netstandard1.0 and very light weight.

You can easily embed it in your WPF application using the RichTextBox like this: https://github.com/halllo/WpfDiff

halllo
  • 801
  • 10
  • 25