Hello,
I use a WinDockManager (actually the CAB Workspace version of it) and I have one Control-pane in it. I want to know if the user closed the pane therefore I catch the PaneHidden event.
From within the PaneHidden event handler I want to fire another event (a user defined one).But when I do that the pane doesn't get hidden anymore - it doesn't disappear anymore.
When I comment the line which fires the event it disappears.
Maybe it's a bug, maybe I have to use another event (which one?).
Any help would be highly appreciated.
Regards, Gerald
I believe you are using the correct event, but perhaps something is being done in the event handler fired from the PaneHidden handler which is keeping the pane open.
Hi Mike,
I am not doing anything extraordinary. I fire a user defined event and the other event handler is updating a menu item.
private void _dockingWorkspace_PaneHidden(object sender, Infragistics.Win.UltraWinDock.PaneHiddenEventArgs e){ // Debug.WriteLine(string.Format("_dockingWorkspace_PaneHidden ({0})", e.Pane.Text));
Ftc.Infrastructure.Interface.UserEventArgs.RefreshMenuItemEventArgs args = new RefreshMenuItemEventArgs(e.Pane.Text, false);
RefreshMenuItemEvent(this, args);}
In another module I catch the RefreshMenuItem-event and update the menu item.
[EventSubscription(Ftc.Infrastructure.Interface.Constants.EventTopicNames.RefreshMenuItem)]public void RefreshMenuItemEventHandler(object sender, EventArgs e){ Ftc.Infrastructure.Interface.UserEventArgs.RefreshMenuItemEventArgs args = e as Ftc.Infrastructure.Interface.UserEventArgs.RefreshMenuItemEventArgs;
The _viewTemplateWindowButton is not null. The enabling/disabling of the menu item works.Any idea?
Thanks and best regards, Gerald