Improved event naming

This commit is contained in:
TheXamlGuy
2024-05-12 19:55:20 +01:00
parent 9eafcc55d0
commit f0fd68c16e
56 changed files with 169 additions and 131 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ namespace Toolkit.Avalonia;
public class ContentDialogHandler(IDispatcher dispatcher) :
INavigateHandler<ContentDialog>
{
public async Task Handle(Navigate<ContentDialog> args,
public async Task Handle(NavigateEventArgs<ContentDialog> args,
CancellationToken cancellationToken)
{
if (args.Context is ContentDialog contentDialog)
@@ -94,7 +94,7 @@ public class ContentDialogHandler(IDispatcher dispatcher) :
if (content is IActivated activated)
{
await activated.Activated();
await activated.OnActivated();
}
}
}