WpfHexEditorControl

Wpf Hexeditor is a powerful and fully customisable user control for editing file or stream as hexadecimal, decimal and binary. Can be used in Wpf or WinForm application

View project on GitHub

WpfHexEditor.Sample.BinaryFilesDifference

Side-by-side binary file comparison with difference highlighting.

🎯 Purpose

Advanced sample for comparing two binary files and highlighting differences using custom background colors.

✨ Features Demonstrated

  • Side-by-Side Comparison: Two hex editors in parallel
  • Difference Highlighting: Color-coded byte differences
  • Synchronized Scrolling: Both editors scroll together
  • CustomBackgroundBlock API: Visual difference markers
  • Statistical Analysis: Difference count and percentage

🚀 How to Run

Visual Studio

  1. Open WpfHexEditorControl.sln
  2. Set as startup project
  3. Press F5

Command Line

dotnet run

📦 Project Type

  • Platform: WPF
  • Language: C#
  • Target Frameworks:
    • .NET 7.0-windows
    • .NET 8.0-windows

🎓 Use Cases

  • Binary Diff Tools: Compare file versions
  • Patch Analysis: Understand what changed
  • ROM Hacking: Compare different ROM versions
  • Version Control: Binary file comparison
  • Quality Assurance: Verify file modifications

📊 Comparison Features

  • Byte-Level Accuracy: Every difference highlighted
  • Color Coding: Different colors for added/removed/modified
  • Navigation: Jump between differences
  • Statistics: Total differences and similarity percentage
  • Export: Save comparison results

✨ Binary file comparison with visual difference highlighting