{"action":"created","issue":{"url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/887","labels_url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/887/comments","events_url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/887/events","html_url":"https://github.com/XLabs/Xamarin-Forms-Labs/pull/887","id":98904606,"number":887,"title":"Fixed issue #668","user":{"login":"AngryPowman","id":1910783,"avatar_url":"https://avatars.githubusercontent.com/u/1910783?v=3","gravatar_id":"","url":"https://api.github.com/users/AngryPowman","html_url":"https://github.com/AngryPowman","followers_url":"https://api.github.com/users/AngryPowman/followers","following_url":"https://api.github.com/users/AngryPowman/following{/other_user}","gists_url":"https://api.github.com/users/AngryPowman/gists{/gist_id}","starred_url":"https://api.github.com/users/AngryPowman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngryPowman/subscriptions","organizations_url":"https://api.github.com/users/AngryPowman/orgs","repos_url":"https://api.github.com/users/AngryPowman/repos","events_url":"https://api.github.com/users/AngryPowman/events{/privacy}","received_events_url":"https://api.github.com/users/AngryPowman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T07:06:18Z","updated_at":"2015-08-11T03:27:23Z","closed_at":"2015-08-08T23:52:24Z","pull_request":{"url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/pulls/887","html_url":"https://github.com/XLabs/Xamarin-Forms-Labs/pull/887","diff_url":"https://github.com/XLabs/Xamarin-Forms-Labs/pull/887.diff","patch_url":"https://github.com/XLabs/Xamarin-Forms-Labs/pull/887.patch"},"body":"This problem have led ```NavigationService.NavigateTo()``` unable to take arguments for constructing view class.\r\n\r\n------\r\n\r\nNow you can do that like so:\r\n```csharp\r\nNavigationService.NavigateTo<YourViewModel>(true, arguments)\r\n```\r\n\r\nThe definitions as follows :\r\n\r\n        void NavigateTo<T>(bool animated = true, params object[] args) where T : class;\r\n        void NavigateTo(string pageKey, bool animated = true, params object[] args);\r\n        void NavigateTo(Type pageType, bool animated = true, params object[] args);\r\n\r\nThe last parameter args on these methods is a list that can put some parameters for constructing your view class.\r\n\r\n------\r\n**NOTICE:**\r\nFunction definitions of `NavigateTo()` have been changed, code might contain some compilation errors.\r\n\r\n------\r\nSee also: https://github.com/XLabs/Xamarin-Forms-Labs/issues/668"},"comment":{"url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/comments/129690784","html_url":"https://github.com/XLabs/Xamarin-Forms-Labs/pull/887#issuecomment-129690784","issue_url":"https://api.github.com/repos/XLabs/Xamarin-Forms-Labs/issues/887","id":129690784,"user":{"login":"zapline","id":1139819,"avatar_url":"https://avatars.githubusercontent.com/u/1139819?v=3","gravatar_id":"","url":"https://api.github.com/users/zapline","html_url":"https://github.com/zapline","followers_url":"https://api.github.com/users/zapline/followers","following_url":"https://api.github.com/users/zapline/following{/other_user}","gists_url":"https://api.github.com/users/zapline/gists{/gist_id}","starred_url":"https://api.github.com/users/zapline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapline/subscriptions","organizations_url":"https://api.github.com/users/zapline/orgs","repos_url":"https://api.github.com/users/zapline/repos","events_url":"https://api.github.com/users/zapline/events{/privacy}","received_events_url":"https://api.github.com/users/zapline/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T03:27:23Z","updated_at":"2015-08-11T03:27:23Z","body":"大王叫我来巡山"}}