This commit is contained in:
TheXamlGuy
2024-02-10 20:19:01 +00:00
parent ecfac99868
commit 565c6866d8
60 changed files with 445 additions and 381 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ public class WindowHandler :
public Task Handle(Navigate<Window> args,
CancellationToken cancellationToken)
{
if (args.Template is Window window)
if (args.View is Window window)
{
if (window.Content is FrameworkElement content)
{
@@ -33,8 +33,8 @@ public class WindowHandler :
}
}
//ViewModelBinder.Bind(args.ViewModel, content);
window.Closed += HandleClosed;
content.DataContext = args.Content;
}
window.Activate();