-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this possible to support virtual bin file #119
Comments
Hello I think you can use a stream object. Bind it this to the hexedit.stream property. You can also check samples project in code |
thanks, and there are some questions, could you please help me clear
|
Hi, I want to implement a similar structure in my Form application. I have tried to wrap the byte array with a memory stream and bind it to the stream property of the hex editor with no success;
In this way, Is it possible to always synchronize the byte array with the editor? Thanks in advance, |
Hello
If you check sample project on GitHub you will find how to bind array into
the hex control.
You need to bind a memorystream
I'm in vacation in a another country. I can't a this moment send a code
sampling
Best regards :)
El mié, 9 oct 2024, 4:49 a. m., ilmete ***@***.***> escribió:
… Hi,
I want to implement a similar structure in my Form application.
I have a 48kB byte array and want to show and modify it on your hex editor.
My app also modifies the byte array.
How could I always keep synchronized the hex editor and the byte array?
I have tried to wrap the byte array with a memory stream and bind it to
the stream property of the hex editor with no success;
hexEditorStream = new MemoryStream(byteArray_48K, 0, 48 * 1024, true, true);
System.Windows.Data.Binding b = new System.Windows.Data.Binding();
b.Mode = System.Windows.Data.BindingMode.TwoWay;
b.Source = this;
b.Path = new System.Windows.PropertyPath("hexEditorStream");
hexEditor.SetBinding(HexEditor.StreamProperty, b);
In this way,
The buffer of the memory stream is also not synchronized with the initial
byte array.
Sometimes buffer of the memory stream reflects the hex editor, not stable.
Modifications on the editor don't reflect the memory stream buffer.
I'm also not sure if I did binding correctly.
If I call the SubmitChanges() method I get the closed memory stream error
for the next time.
Is it possible to always synchronize the byte array with the editor?
What could be the implementation steps?
Is an example code possible?
Thanks in advance,
Regards
—
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AECPEOYRXNRHXQT4M5VIF4LZ2TUZ5AVCNFSM6AAAAABPUAGCSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRG4ZDGNBTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
hi, I'm an embed developer and I need to develop a tool that render the hex data in chip's memory.
and wpfhexeditoris a beautiful control and how could I use this to show variable-data
The text was updated successfully, but these errors were encountered: