Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Washi1337 committed Nov 11, 2024
1 parent fbd4f6c commit 3702955
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a(n experimental) hex editor control for the [Avalonia](https://github.c
- Specify invalid or inaccessible ranges. Useful for documents with "gaps" (e.g., memory views).
- Many style customization options available with default Light and Dark themes.
- Custom byte ranges highlighting.

- Support for memory mapped files.

## Binaries

Expand Down Expand Up @@ -54,9 +54,17 @@ Then, add the `HexEditor` control to your window:
</Window>
```

To display a file in the control, assign the `Document` property:

```csharp
HexEditor editor = ...;

editor.Document = new MemoryBinaryDocument(File.ReadAllBytes(@"C:\Path\To\File.bin"));
```

See [examples](examples) for more details.


## License

MIT
MIT

0 comments on commit 3702955

Please sign in to comment.