{"action":"closed","issue":{"url":"https://api.github.com/repos/RadicalFx/Radical/issues/252","repository_url":"https://api.github.com/repos/RadicalFx/Radical","labels_url":"https://api.github.com/repos/RadicalFx/Radical/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/RadicalFx/Radical/issues/252/comments","events_url":"https://api.github.com/repos/RadicalFx/Radical/issues/252/events","html_url":"https://github.com/RadicalFx/Radical/issues/252","id":282577565,"number":252,"title":"Problem with Interaction.Behaviors","user":{"login":"danielearrighi","id":14169741,"avatar_url":"https://avatars2.githubusercontent.com/u/14169741?v=4","gravatar_id":"","url":"https://api.github.com/users/danielearrighi","html_url":"https://github.com/danielearrighi","followers_url":"https://api.github.com/users/danielearrighi/followers","following_url":"https://api.github.com/users/danielearrighi/following{/other_user}","gists_url":"https://api.github.com/users/danielearrighi/gists{/gist_id}","starred_url":"https://api.github.com/users/danielearrighi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielearrighi/subscriptions","organizations_url":"https://api.github.com/users/danielearrighi/orgs","repos_url":"https://api.github.com/users/danielearrighi/repos","events_url":"https://api.github.com/users/danielearrighi/events{/privacy}","received_events_url":"https://api.github.com/users/danielearrighi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mauroservienti","id":1325611,"avatar_url":"https://avatars1.githubusercontent.com/u/1325611?v=4","gravatar_id":"","url":"https://api.github.com/users/mauroservienti","html_url":"https://github.com/mauroservienti","followers_url":"https://api.github.com/users/mauroservienti/followers","following_url":"https://api.github.com/users/mauroservienti/following{/other_user}","gists_url":"https://api.github.com/users/mauroservienti/gists{/gist_id}","starred_url":"https://api.github.com/users/mauroservienti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauroservienti/subscriptions","organizations_url":"https://api.github.com/users/mauroservienti/orgs","repos_url":"https://api.github.com/users/mauroservienti/repos","events_url":"https://api.github.com/users/mauroservienti/events{/privacy}","received_events_url":"https://api.github.com/users/mauroservienti/received_events","type":"User","site_admin":false},"assignees":[{"login":"mauroservienti","id":1325611,"avatar_url":"https://avatars1.githubusercontent.com/u/1325611?v=4","gravatar_id":"","url":"https://api.github.com/users/mauroservienti","html_url":"https://github.com/mauroservienti","followers_url":"https://api.github.com/users/mauroservienti/followers","following_url":"https://api.github.com/users/mauroservienti/following{/other_user}","gists_url":"https://api.github.com/users/mauroservienti/gists{/gist_id}","starred_url":"https://api.github.com/users/mauroservienti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauroservienti/subscriptions","organizations_url":"https://api.github.com/users/mauroservienti/orgs","repos_url":"https://api.github.com/users/mauroservienti/repos","events_url":"https://api.github.com/users/mauroservienti/events{/privacy}","received_events_url":"https://api.github.com/users/mauroservienti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-12-15T23:44:41Z","updated_at":"2018-03-23T06:28:05Z","closed_at":"2018-03-23T06:28:04Z","author_association":"NONE","body":"Hello,\r\nPlease excuse me if this is not the place to ask for help but I cannot find any documentation about this:\r\nIn a Windows I have a `ItemsControl` with a simple button as a `DataTemplate`.\r\nI'm trying to setup an Handle for the clicked event so here's the current XAML:\r\n\r\n```\r\n[...]\r\n<ItemsControl.ItemTemplate>\r\n    <DataTemplate>\r\n        <Button Content=\"Click Me\" CommandParameter=\"{Binding MyRowId}\">\r\n            <i:Interaction.Behaviors>\r\n                <behaviors:Handle RoutedEvent=\"Button.Click\" WithCommand=\"{Binding Path=DoSomethingWithMyRowId}\" PassingIn=\"$args\" />\r\n            </i:Interaction.Behaviors>\r\n        </Button>\r\n    </DataTemplate>\r\n</ItemsControl.ItemTemplate>\r\n```\r\n\r\nIn the ViewModel, I understand I need to handle a simple Button Click event like:\r\n```\r\nprivate void DoSomethingWithMyRowId(object sender, RoutedEventArgs e)\r\n{\r\n       var clickedRowId = ((Button)e.Source).CommandParameter;;\r\n}\r\n```\r\n\r\nIf I click the button, the application just crashes without exceptions (Visual Studio goes in Break Mode).\r\nWhat am I missing?\r\n\r\nThank you for your help!"}}
{"actor":{"display_login":"mauroservienti"}}