/// <summary> /// C'tor /// </summary> /// <param name="guiElement">Main gui element of the context</param> /// <param name="scene">The 3D-Scene</param> /// <param name="dependencyInjectionKernel">The DI dependencyInjectionKernel to be used</param> public DefaultContext(IGuiElement guiElement, IScene scene, IDependencyInjectionKernel dependencyInjectionKernel) { GuiElement = guiElement; Scene = scene; DependencyInjectionKernel = dependencyInjectionKernel; // use low priority to ensure we get the event as the last guiElement.OnAddedToStage(HandleAddedToStage, false, -100000); guiElement.OnRemovedFromStage(HandleRemovedFromStage); }