Get disposing working for subscription manager

This commit is contained in:
TheXamlGuy
2024-05-12 23:21:05 +01:00
parent d6593aac31
commit 7efaf775ec
3 changed files with 47 additions and 28 deletions
+5 -3
View File
@@ -49,14 +49,16 @@ public class ContentTemplate :
{
await deactivated.OnDeactivated();
}
if (content is IDisposable disposable)
{
disposable.Dispose();
}
}
}
control.Loaded += HandleLoaded;
control.Unloaded += HandleUnloaded;
//viewModelContentBinder?.Register(control);
return control;
}
}