Add activation states back

This commit is contained in:
Dan Clark
2024-11-16 14:05:39 +00:00
parent e45c39030d
commit b4cf6c9928
7 changed files with 78 additions and 84 deletions
+8 -8
View File
@@ -86,10 +86,10 @@ public class ContentDialogHandler :
dialog.Opened -= HandleOpened;
if (dialog.DataContext is object content)
{
//if (content is IActivated activated)
//{
// activated.OnActivated();
//}
if (content is IActivation activation)
{
activation.IsActive = true;
}
}
}
@@ -99,10 +99,10 @@ public class ContentDialogHandler :
dialog.Closed -= HandleClosed;
if (dialog.DataContext is object content)
{
//if (content is IDeactivated deactivated)
//{
// deactivated.OnDeactivated();
//}
if (content is IActivation activation)
{
activation.IsActive = false;
}
}
}