Skip to content

Commit

Permalink
Should have fixed for IocPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Simnico99 committed Sep 15, 2022
1 parent 947e244 commit bc7f7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZirconNet.WPF/Mvvm/IocPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ private IEnumerable<ViewModel> GetPagesDataContextInternal(IServiceProvider serv
continue;
}

foreach(var types in pageDataContextAttribute.PagesToBindType)
foreach(var type in pageDataContextAttribute.PagesToBindType)
{
if (types.GetType() == GetType())
if (type.Name == GetType().Name)
{
yield return viewModel;
}
Expand Down

0 comments on commit bc7f7b8

Please sign in to comment.