{"action":"created","issue":{"url":"https://api.github.com/repos/Catel/Catel/issues/1057","repository_url":"https://api.github.com/repos/Catel/Catel","labels_url":"https://api.github.com/repos/Catel/Catel/issues/1057/labels{/name}","comments_url":"https://api.github.com/repos/Catel/Catel/issues/1057/comments","events_url":"https://api.github.com/repos/Catel/Catel/issues/1057/events","html_url":"https://github.com/Catel/Catel/issues/1057","id":237468673,"number":1057,"title":"CommandManagerBinding not working with EventToCommand","user":{"login":"HumpaLumpa007","id":5374005,"avatar_url":"https://avatars2.githubusercontent.com/u/5374005?v=3","gravatar_id":"","url":"https://api.github.com/users/HumpaLumpa007","html_url":"https://github.com/HumpaLumpa007","followers_url":"https://api.github.com/users/HumpaLumpa007/followers","following_url":"https://api.github.com/users/HumpaLumpa007/following{/other_user}","gists_url":"https://api.github.com/users/HumpaLumpa007/gists{/gist_id}","starred_url":"https://api.github.com/users/HumpaLumpa007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumpaLumpa007/subscriptions","organizations_url":"https://api.github.com/users/HumpaLumpa007/orgs","repos_url":"https://api.github.com/users/HumpaLumpa007/repos","events_url":"https://api.github.com/users/HumpaLumpa007/events{/privacy}","received_events_url":"https://api.github.com/users/HumpaLumpa007/received_events","type":"User","site_admin":false},"labels":[{"id":36285094,"url":"https://api.github.com/repos/Catel/Catel/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"GeertvanHorrik","id":1246444,"avatar_url":"https://avatars3.githubusercontent.com/u/1246444?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertvanHorrik","html_url":"https://github.com/GeertvanHorrik","followers_url":"https://api.github.com/users/GeertvanHorrik/followers","following_url":"https://api.github.com/users/GeertvanHorrik/following{/other_user}","gists_url":"https://api.github.com/users/GeertvanHorrik/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertvanHorrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertvanHorrik/subscriptions","organizations_url":"https://api.github.com/users/GeertvanHorrik/orgs","repos_url":"https://api.github.com/users/GeertvanHorrik/repos","events_url":"https://api.github.com/users/GeertvanHorrik/events{/privacy}","received_events_url":"https://api.github.com/users/GeertvanHorrik/received_events","type":"User","site_admin":false},"assignees":[{"login":"GeertvanHorrik","id":1246444,"avatar_url":"https://avatars3.githubusercontent.com/u/1246444?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertvanHorrik","html_url":"https://github.com/GeertvanHorrik","followers_url":"https://api.github.com/users/GeertvanHorrik/followers","following_url":"https://api.github.com/users/GeertvanHorrik/following{/other_user}","gists_url":"https://api.github.com/users/GeertvanHorrik/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertvanHorrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertvanHorrik/subscriptions","organizations_url":"https://api.github.com/users/GeertvanHorrik/orgs","repos_url":"https://api.github.com/users/GeertvanHorrik/repos","events_url":"https://api.github.com/users/GeertvanHorrik/events{/privacy}","received_events_url":"https://api.github.com/users/GeertvanHorrik/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Catel/Catel/milestones/1","html_url":"https://github.com/Catel/Catel/milestone/1","labels_url":"https://api.github.com/repos/Catel/Catel/milestones/1/labels","id":2452804,"number":1,"title":"5.0.0","description":null,"creator":{"login":"GeertvanHorrik","id":1246444,"avatar_url":"https://avatars3.githubusercontent.com/u/1246444?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertvanHorrik","html_url":"https://github.com/GeertvanHorrik","followers_url":"https://api.github.com/users/GeertvanHorrik/followers","following_url":"https://api.github.com/users/GeertvanHorrik/following{/other_user}","gists_url":"https://api.github.com/users/GeertvanHorrik/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertvanHorrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertvanHorrik/subscriptions","organizations_url":"https://api.github.com/users/GeertvanHorrik/orgs","repos_url":"https://api.github.com/users/GeertvanHorrik/repos","events_url":"https://api.github.com/users/GeertvanHorrik/events{/privacy}","received_events_url":"https://api.github.com/users/GeertvanHorrik/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":125,"state":"open","created_at":"2017-04-12T13:09:34Z","updated_at":"2017-06-26T19:22:44Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-06-21T09:21:01Z","updated_at":"2017-06-27T15:38:13Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. clone this repo: https://github.com/HumpaLumpa007/EventToCommand.CommandManagerBinding\r\n2. build and execute project\r\n3. right click on a item on the right site and execute \"add\". This should add the item to the other list.\r\n4. click the button \"add\" on the top. should add the item to the list on the right\r\n5. double click an item in the right list. MessageBox should appear, but no item will be moved. \r\n\r\nPlatform: Windows 10 x64 Enterprise\r\n.NET version: 4.5.2\r\n\r\n### Expected behaviour\r\n\r\nOn double clicking an item on the right site it should be added to the list on the right site\r\n\r\n### Actual behaviour\r\n\r\nNothing is happening if a Command is bound via CommandManagerBinding to a EventToCommand. If the Command is in the ViewModel and bound \"normally\" it's working fine. see this: https://stackoverflow.com/questions/44669964/eventtocommand-and-commandmanagerbinding-not-working"},"comment":{"url":"https://api.github.com/repos/Catel/Catel/issues/comments/311397656","html_url":"https://github.com/Catel/Catel/issues/1057#issuecomment-311397656","issue_url":"https://api.github.com/repos/Catel/Catel/issues/1057","id":311397656,"user":{"login":"GeertvanHorrik","id":1246444,"avatar_url":"https://avatars3.githubusercontent.com/u/1246444?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertvanHorrik","html_url":"https://github.com/GeertvanHorrik","followers_url":"https://api.github.com/users/GeertvanHorrik/followers","following_url":"https://api.github.com/users/GeertvanHorrik/following{/other_user}","gists_url":"https://api.github.com/users/GeertvanHorrik/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertvanHorrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertvanHorrik/subscriptions","organizations_url":"https://api.github.com/users/GeertvanHorrik/orgs","repos_url":"https://api.github.com/users/GeertvanHorrik/repos","events_url":"https://api.github.com/users/GeertvanHorrik/events{/privacy}","received_events_url":"https://api.github.com/users/GeertvanHorrik/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T15:38:13Z","updated_at":"2017-06-27T15:38:13Z","body":"I made 2 changes:\r\n\r\n1. I *create* the command at startup:\r\n\r\n```\r\n            var commandManager = ServiceLocator.Default.ResolveType<ICommandManager>();\r\n            commandManager.CreateCommand(\"AddToCollectionCommand\");\r\n```\r\n\r\nThen I register an action for the command inside the VM:\r\n\r\n```\r\n      commandManager.RegisterCommand(\"AddToCollectionCommand\", AddToCollectionCommand, this);\r\n```\r\n\r\n2. You have to bind the command first, then the command parameter in xaml (order matters, although it shouldn't, but that's a xaml parsing issue we can't fix):\r\n\r\n```\r\n          <!--not working!-->\r\n          <catel:EventToCommand \r\n                                      Command=\"{catel:CommandManagerBinding AddToCollectionCommand}\" \r\n                                      CommandParameter=\"{Binding SelectedDataItem}\"\r\n                                      DisableAssociatedObjectOnCannotExecute=\"False\" />\r\n```"}}
{"actor":{"display_login":"GeertvanHorrik"}}