WpfHexEditorControl: Stream Binding not Displaying Data

Platform

I am using WpfHexEditor in WPF with MVVM.

Problem

I am using a ViewModel with the following data:

public MemoryStream Data { get; } = new MemoryStream();

public void Initialise(byte[] data)
{
    Data.Write(data, 0, data.Length);
}

I am binding the MemoryStream (Data) using the following XAML code:

<WpfHexEditor:HexEditor Stream="{Binding Data, Mode=OneTime}"/>

Result

This yields an empty editor control: http://prntscr.com/iksyy4

Question

The stream binding does not work. The stream only works if set from code-behind.

Do you have a solution to this?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 37 (33 by maintainers)

Commits related to this issue

Most upvoted comments

@Aleksbgbg em, this is bug of the control that will be fixed soon. 😉