Initial navigaiton work; opening Windows
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Microsoft.UI.Xaml;
|
||||
|
||||
namespace Hyperbar.UI.Windows;
|
||||
|
||||
public class WindowHandler :
|
||||
INavigationHandler<Window>
|
||||
{
|
||||
public Task Handle(Navigate<Window> args,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
if (args.Template is Window window)
|
||||
{
|
||||
window.Activate();
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user