{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1719","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1719/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1719/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1719/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/1719","id":292066656,"number":1719,"title":"[Enhancement] Left-aligned ToolbarItems on Android & iOS","user":{"login":"samhouts","id":7827070,"avatar_url":"https://avatars3.githubusercontent.com/u/7827070?v=4","gravatar_id":"","url":"https://api.github.com/users/samhouts","html_url":"https://github.com/samhouts","followers_url":"https://api.github.com/users/samhouts/followers","following_url":"https://api.github.com/users/samhouts/following{/other_user}","gists_url":"https://api.github.com/users/samhouts/gists{/gist_id}","starred_url":"https://api.github.com/users/samhouts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhouts/subscriptions","organizations_url":"https://api.github.com/users/samhouts/orgs","repos_url":"https://api.github.com/users/samhouts/repos","events_url":"https://api.github.com/users/samhouts/events{/privacy}","received_events_url":"https://api.github.com/users/samhouts/received_events","type":"User","site_admin":false},"labels":[{"id":816672203,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/F100","name":"F100","color":"e65bff","default":false},{"id":820749684,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/community-sprint","name":"community-sprint","color":"3455af","default":false},{"id":343860853,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/t/enhancement","name":"t/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"jassmith","id":30443,"avatar_url":"https://avatars2.githubusercontent.com/u/30443?v=4","gravatar_id":"","url":"https://api.github.com/users/jassmith","html_url":"https://github.com/jassmith","followers_url":"https://api.github.com/users/jassmith/followers","following_url":"https://api.github.com/users/jassmith/following{/other_user}","gists_url":"https://api.github.com/users/jassmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jassmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jassmith/subscriptions","organizations_url":"https://api.github.com/users/jassmith/orgs","repos_url":"https://api.github.com/users/jassmith/repos","events_url":"https://api.github.com/users/jassmith/events{/privacy}","received_events_url":"https://api.github.com/users/jassmith/received_events","type":"User","site_admin":false},"assignees":[{"login":"jassmith","id":30443,"avatar_url":"https://avatars2.githubusercontent.com/u/30443?v=4","gravatar_id":"","url":"https://api.github.com/users/jassmith","html_url":"https://github.com/jassmith","followers_url":"https://api.github.com/users/jassmith/followers","following_url":"https://api.github.com/users/jassmith/following{/other_user}","gists_url":"https://api.github.com/users/jassmith/gists{/gist_id}","starred_url":"https://api.github.com/users/jassmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jassmith/subscriptions","organizations_url":"https://api.github.com/users/jassmith/orgs","repos_url":"https://api.github.com/users/jassmith/repos","events_url":"https://api.github.com/users/jassmith/events{/privacy}","received_events_url":"https://api.github.com/users/jassmith/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2018-01-26T23:55:40Z","updated_at":"2018-05-14T08:07:50Z","closed_at":null,"author_association":"MEMBER","body":"## Rationale\r\n\r\n`ToolbarItem`s currently display aligned to the right on all platforms. There is no way to display a `ToolbarItem` on the left. This is useful for many designs, including completely customizing the back button on a `NavigationPage`.\r\n\r\n## Implementation\r\n\r\nAdd new platform specific properties to `ToolbarItem`:\r\n\r\n```csharp\r\npublic enum ToolbarItemPosition { Start, End }\r\n\r\nToolbarItem.On<Android>().ToolbarItemPosition = ToolbarItemPosition.Start;\r\nToolbarItem.On<iOS>().ToolbarItemPosition = ToolbarItemPosition.Start;\r\n```\r\n\r\nRenderers will need to be updated accordingly.\r\n\r\n## Expected Result\r\n\r\n### Android\r\n\r\n- `ToolbarItemPosition` will default to `End`.\r\n- If the `ToolbarItemPosition` is set to `Start`, `ToolbarItem` will be displayed on the left side of the screen when in LTR mode and on the right side of the screen when in RTL mode. \r\n\r\n### iOS\r\n\r\nSee Android\r\n\r\n### UWP\r\n\r\nNo change. This is not a supported paradigm for UWP, so it will not be affected.\r\n\r\n## Implications for CSS\r\n\r\nNone\r\n\r\n## Backward Compatibility\r\n\r\nSince we are adding new properties, there should be no compatibility problems as long as:\r\n\r\n1. We ensure that a `ToolbarItem`'s Position defaults to the right side of the screen, as is the expected behavior now.\r\n2. We ensure that any Effects or Custom Renderers that may have been created to produce this behavior take precedence over any values that we set, to the best of our ability.\r\n\r\nThird party renderers will need to be updated to ensure that this functionality is officially supported.\r\n\r\n## Difficulty : Easy\r\n\r\nSee https://forums.xamarin.com/discussion/85097/left-toolbaritems-in-xamarin-forms for original proposal.\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/comments/388731915","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/1719#issuecomment-388731915","issue_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1719","id":388731915,"user":{"login":"pnda489","id":22197513,"avatar_url":"https://avatars0.githubusercontent.com/u/22197513?v=4","gravatar_id":"","url":"https://api.github.com/users/pnda489","html_url":"https://github.com/pnda489","followers_url":"https://api.github.com/users/pnda489/followers","following_url":"https://api.github.com/users/pnda489/following{/other_user}","gists_url":"https://api.github.com/users/pnda489/gists{/gist_id}","starred_url":"https://api.github.com/users/pnda489/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnda489/subscriptions","organizations_url":"https://api.github.com/users/pnda489/orgs","repos_url":"https://api.github.com/users/pnda489/repos","events_url":"https://api.github.com/users/pnda489/events{/privacy}","received_events_url":"https://api.github.com/users/pnda489/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T08:07:50Z","updated_at":"2018-05-14T08:07:50Z","author_association":"NONE","body":"Is it possible to add options to set the Toolbaricon?\r\n\r\n**Left, Middle, Right** ? It would be more easy to set an image icon of a company in the center of the Navbar or align it to the left Controlbutton (Back or Hamburger)"}}
{"actor":{"display_login":"pnda489"}}