protected virtual void OnWindowCreating(WindowCreatingEventArgs e) { var handler = WindowCreating; if (handler != null) { handler(this, e); } }
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) { var handler = WindowCreating; handler?.Invoke(this, e); }