Skip to content

Commit

Permalink
ViewLocator can't deduce view by viewmodel name (#4)
Browse files Browse the repository at this point in the history
* Added current route name to main view side bar

* ViewLocator can't find RogueView by deducing names
  • Loading branch information
idotta authored Jun 1, 2024
1 parent 9f85efd commit 1174adb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ViewLocator : IDataTemplate
{
Page1ViewModel p1 => new Page1View { DataContext = p1 },
Page2ViewModel p2 => new Page2View { DataContext = p2 },
RogueViewModel r => new RogueView { DataContext = r },
_ => TryDeduceControl(data),
};
}
Expand Down

0 comments on commit 1174adb

Please sign in to comment.