{"action":"opened","issue":{"url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/522","repository_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro","labels_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/522/comments","events_url":"https://api.github.com/repos/Caliburn-Micro/Caliburn.Micro/issues/522/events","html_url":"https://github.com/Caliburn-Micro/Caliburn.Micro/issues/522","id":325264112,"number":522,"title":"Why UWP version doesn't find views at all?","user":{"login":"dzaraev","id":12126716,"avatar_url":"https://avatars2.githubusercontent.com/u/12126716?v=4","gravatar_id":"","url":"https://api.github.com/users/dzaraev","html_url":"https://github.com/dzaraev","followers_url":"https://api.github.com/users/dzaraev/followers","following_url":"https://api.github.com/users/dzaraev/following{/other_user}","gists_url":"https://api.github.com/users/dzaraev/gists{/gist_id}","starred_url":"https://api.github.com/users/dzaraev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzaraev/subscriptions","organizations_url":"https://api.github.com/users/dzaraev/orgs","repos_url":"https://api.github.com/users/dzaraev/repos","events_url":"https://api.github.com/users/dzaraev/events{/privacy}","received_events_url":"https://api.github.com/users/dzaraev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T12:05:47Z","updated_at":"2018-05-22T12:05:47Z","closed_at":null,"author_association":"NONE","body":"Hello. I'm a bit confused 'cause I have used CM a lot on WPF previously but can't achieve basic things on UWP.\r\n\r\nThe context:\r\nThere is single-project solution with executable UWP project and CM installed via nuget.\r\nThere are correctly written (using popular guides) CaliburnApplication and folder structure (like Views and ViewModels folders, correct x:Class attributes and etc)\r\nI have successfully launched an app with ShellView/ShellViewModel\r\nThen I have placed ContentController inside ShellView referencing on another ViewModel (binding goes correctly) let's call it SceneViewModel/SceneView\r\n\r\nThe problem:\r\nAfter launch CM writes that it can't find View for SceneViewModel.\r\n\r\nWhat I have undertaken:\r\nI have rechecked all the things I know about CM naming conventions and all involved classes, views etc.\r\nThen I started debug CM code and found out that \r\nViewLocator.LocateTypeForModelType method can't get View types at all.\r\nWhy? It turned out that Caliburn.Micro.ExtensionMethods.GetExportedTypes returns all the types inside my only assemble EXCEPT of View types.\r\nWhy? It turned out that inside Caliburn.Micro.ExtensionMethods.GetExportedTypes - the code System.Reflection.Assembly.ExportedTypes returns all the types inside the assemble EXCEPT of View types.\r\n\r\nSo, thus I see that Views are not exportable for now and thus CM can't take them into account during VM/V binding process.\r\n\r\nSo there are two questions for this topic:\r\n1) Is it ok for UWP to make view classes as internal by default (i'm not sure about WPF, didn't check this point)\r\n2) If point 1 is \"yes\" then why CM didn't make it out of the box?\r\n3) (optional) Am I doing wrong something, maybe? )"}}
{"actor":{"display_login":"dzaraev"}}