Skip to content

Commit

Permalink
Fixing view discovery for Unity for UWP
Browse files Browse the repository at this point in the history
Fixing a bug when a page could not inherit its destination viewmodel because VML assumed that if we naviagte to page, then the page has to have a frame.
  • Loading branch information
MikelThief authored Nov 22, 2018
1 parent dff0050 commit eba378f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public object Resolve(Type type, string name)

public object ResolveViewModelForView(object view, Type viewModelType)
{
if (view is Page page)
if (view is Page page && page.Frame != null)
{
var service = NavigationService.Instances[page.Frame];
ResolverOverride[] overrides = null;
Expand Down

0 comments on commit eba378f

Please sign in to comment.