Structuring Memory Contore in WPF

What is the best way to create a memory viewer control (a la Visual Studio Memory Window)?

The control will be mapped to an array of bytes and a value representing the starting address (perhaps the control can be mapped to an object that is directly associated with "memory", with read and write methods, and events for memory).

The display should look something like this:

start..end
addr: 42 79 74 65 | B y t e
addr: 57 6f 72 64 | W o r d

alt text http://www.plinth.org/_images/memorywindow.jpg

I'm trying to find the best way to get a reasonable visual hierarchy so that when you stretch the containing window, it automatically adjusts the content, and you can select the text in hexadecimal or ASCII area, and the choice will be reflected in both.

Bonus points if I can make recently changed values ​​in different colors.

I look at the stack panel and two rich text fields, where the varying width of the hex window controls the contents of the other two?

+3
source share

Source: https://habr.com/ru/post/1711693/


All Articles