From 370295516716865a417c6a3b15a75c6bf8e28475 Mon Sep 17 00:00:00 2001 From: Washi Date: Mon, 11 Nov 2024 13:56:39 +0100 Subject: [PATCH] Update readme --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6342f35..45458a9 100644 --- a/README.md +++ b/README.md @@ -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 @@ -54,9 +54,17 @@ Then, add the `HexEditor` control to your 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 \ No newline at end of file +MIT