Use this pattern when you want the control without the repository sample UI.
ScrollViewerprivate MemoryMappedLineReader? _reader;
private ByteOverlay? _overlay;
private ByteOverlayLineReader? _overlayReader;
private HexFormatter? _formatter;
Add these only when needed:
SelectionService for fill, zero, increment, randomize, and paste helpersNavigationService for bookmarks and change navigationEditJournal for undo and redoHexSearchService for search and replaceToBase = 16BytesWidth = 8 or 16GroupSize = 8ShowGroupSeparator = trueEncoding = ASCIIThose are also the defaults used throughout the sample surfaces.