{"action":"created","issue":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/349","repository_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro","labels_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/349/comments","events_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/349/events","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/349","id":166753383,"number":349,"title":"ContentView's Model is ignored in Xamarin.Forms","user":{"login":"nologinatgit","id":4659744,"avatar_url":"https://avatars.githubusercontent.com/u/4659744?v=3","gravatar_id":"","url":"https://api.github.com/users/nologinatgit","html_url":"https://github.com/nologinatgit","followers_url":"https://api.github.com/users/nologinatgit/followers","following_url":"https://api.github.com/users/nologinatgit/following{/other_user}","gists_url":"https://api.github.com/users/nologinatgit/gists{/gist_id}","starred_url":"https://api.github.com/users/nologinatgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nologinatgit/subscriptions","organizations_url":"https://api.github.com/users/nologinatgit/orgs","repos_url":"https://api.github.com/users/nologinatgit/repos","events_url":"https://api.github.com/users/nologinatgit/events{/privacy}","received_events_url":"https://api.github.com/users/nologinatgit/received_events","type":"User","site_admin":false},"labels":[{"id":78018206,"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/milestones/6","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/milestones/v3.0.2","labels_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/milestones/6/labels","id":1767387,"number":6,"title":"v3.0.2","description":"","creator":{"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},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2016-05-15T22:09:48Z","updated_at":"2016-11-02T09:01:24Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-21T07:20:05Z","updated_at":"2016-11-03T10:10:10Z","closed_at":null,"body":"I have the following XAML for a parent view:\n\n``` xaml\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<ContentPage x:Class=\"MyProject.Views.MainContainerView\"\n             xmlns=\"http://xamarin.com/schemas/2014/forms\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n             xmlns:cm=\"clr-namespace:Caliburn.Micro.Xamarin.Forms;assembly=Caliburn.Micro.Platform.Xamarin.Forms\"\n             Title=\"Container\">\n    <ContentView cm:View.Model=\"{Binding DetailViewModel}\" />\n</ContentPage>\n```\n\nThis is its ViewModel:\n\n``` csharp\npublic class MainContainerViewModel : Screen\n{\n    public MainContainerViewModel()\n    {\n      DetailViewModel = new DetailsViewModel ();\n    }\n\n    public DetailsViewModel DetailViewModel{ get; set; }\n\n    public void Save()\n    {\n      var y = 7;\n    }\n}\n```\n\nThis is the DetailsView:\n\n``` xaml\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<ContentView x:Class=\"MyProject.Views.DetailsView\"\n             xmlns=\"http://xamarin.com/schemas/2014/forms\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n             xmlns:cm=\"clr-namespace:Caliburn.Micro.Xamarin.Forms;assembly=Caliburn.Micro.Platform.Xamarin.Forms\"\n             xmlns:sys=\"clr-namespace:System;assembly=mscorlib\">\n    <Button cm:Message.Attach=\"Save\" Text=\"Save\" />\n</ContentView>\n\n```\n\nThis is the ViewModel for the Details:\n\n``` csharp\npublic class DetailsViewModel : Screen\n{\n   public void Save()\n    {\n      var y = 2;\n    }\n}\n```\n\nI always end up in the MainContainerViewModel's `Save` method instead of the detail viewmodel.\n\nWhy? What should I modify?\n"},"comment":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/comments/258104062","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/349#issuecomment-258104062","issue_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/349","id":258104062,"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-11-03T10:10:10Z","updated_at":"2016-11-03T10:10:10Z","body":"Just pushed a fix, if you want to have a look and see if it resolves in your app as well."}}
{"actor":{"display_login":"nigel-sampson"}}