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
- Open
WpfHexEditorControl.sln - Set as startup project
- 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
📚 Related Samples
- BarChart Sample - Visual data analysis
- AvalonDock Sample - Multi-file IDE
- All Samples - Overview of all samples
✨ Binary file comparison with visual difference highlighting