protected override void OnLoad(EventArgs e) { base.OnLoad(e); Helpers.AddMeta(Page); if (WebWindow.CurrentRequestWindow != null) { WebWindow.CurrentRequestWindow.PagePreRender += new EventHandler(CurrentRequestWindow_PagePreRender); if (Helpers.ContentHelper.Manager == null) { Helpers.ContentHelper.Manager = (Page as BaseXafPage).CallbackManager; } var menuHandler = new XAF_Bootstrap.Controls.CallbackHandler(); menuHandler.Register("MenuItemClickControllerCallback"); menuHandler.OnCallback += menuHandler_OnCallback; var app = (WebApplication.Instance as XafApplication); if (app.MainWindow != null) { GenerateMenuItems(app.MainWindow.GetController <ShowNavigationItemController>().ShowNavigationItemAction.Items); } } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); Helpers.AddMeta(Page); if (WebWindow.CurrentRequestWindow != null) { WebWindow.CurrentRequestWindow.PagePreRender += new EventHandler(CurrentRequestWindow_PagePreRender); if (Helpers.ContentHelper.Manager == null) Helpers.ContentHelper.Manager = (Page as BaseXafPage).CallbackManager; var menuHandler = new XAF_Bootstrap.Controls.CallbackHandler(); menuHandler.Register("MenuItemClickControllerCallback"); menuHandler.OnCallback += menuHandler_OnCallback; var app = (WebApplication.Instance as XafApplication); if (app.MainWindow != null) GenerateMenuItems(app.MainWindow.GetController<ShowNavigationItemController>().ShowNavigationItemAction.Items); } }