I am using a PopupMenuTool as a context menu which works fine when it does not contain other PopupMenuTools. However, when using child PopupMenuTools, the parent closes whenever one of the child PopupMenuTools closes which is not the behavior it should be doing. Please let me know if there is a solution to this because I think it may be a bug. I am using the latest service release of 2010 Vol 3.
Thank you... This workes perfectly for my problem...!
Now the behaviour is correct even with WPFs WindowsFormsHost
Oh I see. This is because the window in which the UltraToolbarsManager exists is not a .Net Form. This scenario is actually not supported directly by the UltraToolbarsManager and requires a derived UltraToolbarsManager to be created. I provided a sample one to help get people started here. You'll probably also have to call Infragistics.Win.Utilities.ForceNativeMessageFilter() once before your main form is shown so the UltraToolbarsManager can get the proper window messages.
Ok... here is the sample app:
I found out, that the problem seems to be WPF dependent because we use the control "by now" in a "WindowsFormsHost" within a WPF window.
As you can see in "WpfApplication1\bin\Debug\UltraWinToolBarSample.exe"
within a "WindowsFormsApplication"
the behaviour is in fact correct.
Only the WpfApplication1.exe shows the behaviour i descriped.
But if you know any workaround to help us, I really would be deeply grateful :)
Thanks for the offered help so far anyway...
I verfied i did not handle the AfterToolCloseup event.
For testing the bug I now added the event handler to all PopupMenuTool in this toolbar, but it's empty.
(see screenshot)
So now
in debug right after the childs AfterToolCloseup is called i step out of this method and the next step is the AfterToolCloseup of the parent.
Does it have anything to do with CloseAllPopups-method of the UltraWinToolbars.PopupManager?
I try to provide you a small sample application within a short time...
Again, are you handling the AfterToolCloseup event? Can you provide a small sample which reproduces the issue?