{"action":"created","issue":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/336","repository_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro","labels_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/336/comments","events_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/336/events","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/336","id":158522225,"number":336,"title":"Xamarin ToolbarItem and Message.attach does not seems to work","user":{"login":"lploumen","id":11539944,"avatar_url":"https://avatars.githubusercontent.com/u/11539944?v=3","gravatar_id":"","url":"https://api.github.com/users/lploumen","html_url":"https://github.com/lploumen","followers_url":"https://api.github.com/users/lploumen/followers","following_url":"https://api.github.com/users/lploumen/following{/other_user}","gists_url":"https://api.github.com/users/lploumen/gists{/gist_id}","starred_url":"https://api.github.com/users/lploumen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lploumen/subscriptions","organizations_url":"https://api.github.com/users/lploumen/orgs","repos_url":"https://api.github.com/users/lploumen/repos","events_url":"https://api.github.com/users/lploumen/events{/privacy}","received_events_url":"https://api.github.com/users/lploumen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-04T20:20:48Z","updated_at":"2016-06-17T04:13:03Z","closed_at":"2016-06-17T04:13:03Z","body":"Hi,\r\nI'm using Xamarin Forms on Windows Phone 8.1 Silverlight.\r\nI tried to have a method called on my viewmodel when the user click a toolbar item but I cannot make it work.\r\nI also try the commented line.\r\nIs it supposed to work ?\r\n\r\n```C#\r\n <ContentPage.ToolbarItems>\r\n    <!--<ToolbarItem Text=\"Menukk1\" forms:Message.Attach=\"ToolbarTest\">-->\r\n    <ToolbarItem Text=\"Menukk1\" forms:Message.Attach=\"[Event Clicked] = [ToolbarTest()]\">\r\n      <ToolbarItem.Icon>\r\n        <OnPlatform x:TypeArguments=\"FileImageSource\" WinPhone=\"Assets/appbar.location.circle.png\" />\r\n      </ToolbarItem.Icon>\r\n    </ToolbarItem>\r\n  </ContentPage.ToolbarItems>\r\n```"},"comment":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/comments/226676451","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/336#issuecomment-226676451","issue_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/336","id":226676451,"user":{"login":"nigel-sampson","id":1256017,"avatar_url":"https://avatars.githubusercontent.com/u/1256017?v=3","gravatar_id":"","url":"https://api.github.com/users/nigel-sampson","html_url":"https://github.com/nigel-sampson","followers_url":"https://api.github.com/users/nigel-sampson/followers","following_url":"https://api.github.com/users/nigel-sampson/following{/other_user}","gists_url":"https://api.github.com/users/nigel-sampson/gists{/gist_id}","starred_url":"https://api.github.com/users/nigel-sampson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigel-sampson/subscriptions","organizations_url":"https://api.github.com/users/nigel-sampson/orgs","repos_url":"https://api.github.com/users/nigel-sampson/repos","events_url":"https://api.github.com/users/nigel-sampson/events{/privacy}","received_events_url":"https://api.github.com/users/nigel-sampson/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T04:13:03Z","updated_at":"2016-06-17T04:13:03Z","body":"I just dug into this some more to make sure I had the types right.\r\n\r\nWhile `EventTrigger<T>` has a generic restriction to just `BindableObject`, the `Triggers` property is on `VisualElement`.\r\n\r\nSince `ToolbarItem` doesn't inherit from `VisualElement` we can't attach our triggers to it.\r\n\r\n"}}
{"actor":{"display_login":"nigel-sampson"}}