{"action":"created","issue":{"url":"https://api.github.com/repos/PrismLibrary/Prism/issues/95","labels_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/95/comments","events_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/95/events","html_url":"https://github.com/PrismLibrary/Prism/issues/95","id":99579345,"number":95,"title":"[UWP] AutoWireViewModel from another assembly using Unity?","user":{"login":"veccie","id":13075972,"avatar_url":"https://avatars.githubusercontent.com/u/13075972?v=3","gravatar_id":"","url":"https://api.github.com/users/veccie","html_url":"https://github.com/veccie","followers_url":"https://api.github.com/users/veccie/followers","following_url":"https://api.github.com/users/veccie/following{/other_user}","gists_url":"https://api.github.com/users/veccie/gists{/gist_id}","starred_url":"https://api.github.com/users/veccie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veccie/subscriptions","organizations_url":"https://api.github.com/users/veccie/orgs","repos_url":"https://api.github.com/users/veccie/repos","events_url":"https://api.github.com/users/veccie/events{/privacy}","received_events_url":"https://api.github.com/users/veccie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T04:59:14Z","updated_at":"2015-08-07T06:01:01Z","closed_at":"2015-08-07T05:17:26Z","body":"Is it possible to use Unity to locate a viewmodel from another assembly when using AutoWireViewModel?\r\n\r\nRight now the code below is used to locate a viewmodel, but this only works when the viewmodel is in the same assembly as the view/page.\r\n```\r\nstatic Func<Type, Type> _defaultViewTypeToViewModelTypeResolver =\r\n    viewType =>\r\n    {\r\n        var viewName = viewType.FullName;\r\n        viewName = viewName.Replace(\".Views.\", \".ViewModels.\");\r\n        var viewAssemblyName = viewType.GetTypeInfo().Assembly.FullName;\r\n        var suffix = viewName.EndsWith(\"View\") ? \"Model\" : \"ViewModel\";\r\n        var viewModelName = String.Format(CultureInfo.InvariantCulture, \"{0}{1}, {2}\", viewName, suffix, viewAssemblyName);\r\n        return Type.GetType(viewModelName);\r\n    };\r\n```\r\nWhat can be added in PrismUnityApplication in order to change the default locator?\r\n\r\nIs it even possible?"},"comment":{"url":"https://api.github.com/repos/PrismLibrary/Prism/issues/comments/128607270","html_url":"https://github.com/PrismLibrary/Prism/issues/95#issuecomment-128607270","issue_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/95","id":128607270,"user":{"login":"veccie","id":13075972,"avatar_url":"https://avatars.githubusercontent.com/u/13075972?v=3","gravatar_id":"","url":"https://api.github.com/users/veccie","html_url":"https://github.com/veccie","followers_url":"https://api.github.com/users/veccie/followers","following_url":"https://api.github.com/users/veccie/following{/other_user}","gists_url":"https://api.github.com/users/veccie/gists{/gist_id}","starred_url":"https://api.github.com/users/veccie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veccie/subscriptions","organizations_url":"https://api.github.com/users/veccie/orgs","repos_url":"https://api.github.com/users/veccie/repos","events_url":"https://api.github.com/users/veccie/events{/privacy}","received_events_url":"https://api.github.com/users/veccie/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T06:01:01Z","updated_at":"2015-08-07T06:01:01Z","body":"Ok, I'll try that. Thanks."}}