mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add event to be fired when new markup is loaded
This commit is contained in:
@@ -33,6 +33,8 @@ namespace Microsoft.Iris.Markup
|
|||||||
private static uint s_rootIslandId;
|
private static uint s_rootIslandId;
|
||||||
private static uint s_activeIslands;
|
private static uint s_activeIslands;
|
||||||
|
|
||||||
|
public static event EventHandler<LoadResult> NewMarkupLoaded;
|
||||||
|
|
||||||
public static void Startup(bool compileMode)
|
public static void Startup(bool compileMode)
|
||||||
{
|
{
|
||||||
MarkupSystemActive = true;
|
MarkupSystemActive = true;
|
||||||
@@ -135,6 +137,8 @@ namespace Microsoft.Iris.Markup
|
|||||||
if (loadResult.UnderlyingUri != null)
|
if (loadResult.UnderlyingUri != null)
|
||||||
LoadResultCache.Write(loadResult.UnderlyingUri, loadResult);
|
LoadResultCache.Write(loadResult.UnderlyingUri, loadResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NewMarkupLoaded?.Invoke(null, loadResult);
|
||||||
}
|
}
|
||||||
loadResult?.AddReference(islandId);
|
loadResult?.AddReference(islandId);
|
||||||
ErrorManager.ExitContext();
|
ErrorManager.ExitContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user