Some time ago I have to find any out of shelf WPF control for editing hex files.
I found really interesting and useful application for editing hex files:
http://sourceforge.net/projects/hexbox/[
^]
Although this control is written in WindowsForms I managed to use it in my solution via WindowsHosted functionality.
Recently because of some issues related to
Airspace problem WPF[
^] I decide to learn how to rewrite it to WPF.
A hosted Windows Forms control is drawn in a separate HWND, so it is always drawn on top of WPF elements.
Therefore I wonder how above Be.Hex control could be rewritten into WPF.
Is it possible?
Be.Hex implementation is really great. It contains all functionality such as editing ASCII part or directly Bytes part.
It looks quite complex, it contains many Windows.Forms handled events.
But thing that seems to be even more difficult to rewrite in WPF is:
delegate bool MessageDelegate(ref Message m);
Would anybody give me any advise how to implement such app in WPF.
I considered Grid at the beginning, or even Custom Grid.
Another thing to consider would be RichTextBox.
I would like to have somes tips, hints. I consider writing such app as a great way of learning WPF.