Exemplo n.º 1
0
        protected virtual void OnWindowCreating(WindowCreatingEventArgs e)
        {
            var handler = WindowCreating;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        protected virtual void OnWindowCreating(WindowCreatingEventArgs e)
        {
            var handler = WindowCreating;

            handler?.Invoke(this, e);
        }