protected override Window CreateWindowCore(TemplateContext context, ICollection<Controller> controllers, bool isMain, bool activateControllersImmediatelly) { Tracing.Tracer.LogVerboseValue("WinApplication.CreateWindowCore.activateControllersImmediatelly", activateControllersImmediatelly); var windowCreatingEventArgs = new WindowCreatingEventArgs(); OnWindowCreating(windowCreatingEventArgs); return windowCreatingEventArgs.Handled? windowCreatingEventArgs.Window : new XpandWebWindow(this, context, controllers, isMain, activateControllersImmediatelly); }
protected virtual void OnWindowCreating(WindowCreatingEventArgs e) { EventHandler<WindowCreatingEventArgs> handler = WindowCreating; if (handler != null) handler(this, e); }