Add event to be fired when new markup is loaded

This commit is contained in:
Yoshi Askharoun
2024-01-31 21:01:19 -06:00
parent 76c42ce43b
commit c4e5af3e9c
@@ -33,6 +33,8 @@ namespace Microsoft.Iris.Markup
private static uint s_rootIslandId;
private static uint s_activeIslands;
public static event EventHandler<LoadResult> NewMarkupLoaded;
public static void Startup(bool compileMode)
{
MarkupSystemActive = true;
@@ -135,6 +137,8 @@ namespace Microsoft.Iris.Markup
if (loadResult.UnderlyingUri != null)
LoadResultCache.Write(loadResult.UnderlyingUri, loadResult);
}
NewMarkupLoaded?.Invoke(null, loadResult);
}
loadResult?.AddReference(islandId);
ErrorManager.ExitContext();