{"action":"created","issue":{"url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/26","repository_url":"https://api.github.com/repos/abbaye/WpfHexEditorControl","labels_url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/26/comments","events_url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/26/events","html_url":"https://github.com/abbaye/WpfHexEditorControl/issues/26","id":300950378,"number":26,"title":"Stream Binding not Displaying Data","user":{"login":"Aleksbgbg","id":31630318,"avatar_url":"https://avatars3.githubusercontent.com/u/31630318?v=4","gravatar_id":"","url":"https://api.github.com/users/Aleksbgbg","html_url":"https://github.com/Aleksbgbg","followers_url":"https://api.github.com/users/Aleksbgbg/followers","following_url":"https://api.github.com/users/Aleksbgbg/following{/other_user}","gists_url":"https://api.github.com/users/Aleksbgbg/gists{/gist_id}","starred_url":"https://api.github.com/users/Aleksbgbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aleksbgbg/subscriptions","organizations_url":"https://api.github.com/users/Aleksbgbg/orgs","repos_url":"https://api.github.com/users/Aleksbgbg/repos","events_url":"https://api.github.com/users/Aleksbgbg/events{/privacy}","received_events_url":"https://api.github.com/users/Aleksbgbg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-02-28T09:30:57Z","updated_at":"2018-03-05T16:59:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Platform\r\nI am using WpfHexEditor in WPF with MVVM.\r\n\r\n## Problem\r\nI am using a ViewModel with the following data:\r\n```cs\r\npublic MemoryStream Data { get; } = new MemoryStream();\r\n\r\npublic void Initialise(byte[] data)\r\n{\r\n    Data.Write(data, 0, data.Length);\r\n}\r\n```\r\n\r\nI am binding the `MemoryStream` (`Data`) using the following XAML code:\r\n```xaml\r\n<WpfHexEditor:HexEditor Stream=\"{Binding Data, Mode=OneTime}\"/>\r\n```\r\n\r\n## Result\r\nThis yields an empty editor control:\r\nhttp://prntscr.com/iksyy4\r\n\r\n\r\n## Question\r\nThe stream binding does not work. The stream only works if set from code-behind.\r\n\r\nDo you have a solution to this?"},"comment":{"url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/comments/370487485","html_url":"https://github.com/abbaye/WpfHexEditorControl/issues/26#issuecomment-370487485","issue_url":"https://api.github.com/repos/abbaye/WpfHexEditorControl/issues/26","id":370487485,"user":{"login":"JanusTida","id":29449156,"avatar_url":"https://avatars0.githubusercontent.com/u/29449156?v=4","gravatar_id":"","url":"https://api.github.com/users/JanusTida","html_url":"https://github.com/JanusTida","followers_url":"https://api.github.com/users/JanusTida/followers","following_url":"https://api.github.com/users/JanusTida/following{/other_user}","gists_url":"https://api.github.com/users/JanusTida/gists{/gist_id}","starred_url":"https://api.github.com/users/JanusTida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanusTida/subscriptions","organizations_url":"https://api.github.com/users/JanusTida/orgs","repos_url":"https://api.github.com/users/JanusTida/repos","events_url":"https://api.github.com/users/JanusTida/events{/privacy}","received_events_url":"https://api.github.com/users/JanusTida/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T16:59:02Z","updated_at":"2018-03-05T16:59:02Z","author_association":"COLLABORATOR","body":"@Aleksbgbg you could try to remove the sentence from the constructor of the control, by which the data context is the set to the control, a is saying from abbaye, please note that removing this sentence may take some effects to the other parts that depend on this word of three control,like status bar. "}}
{"actor":{"display_login":"JanusTida"}}