Hi,
I am using XamDockManager 10.2 version.
In my dockmanager if use a content pane (except in tabbed position) i am unable to close the pane using right corner - 'x' button. It's in disable state. I am facing this problem recently while changing my versions.
How can I eliminate this problem?Do we need to enable this button explicitly while adding a content pane? I tried this by giving AllowClose = True; CloseButtonVisibility="Visible"; But Its not working.
Could anybody help me to solve this issue. I have also attached a sample application along with this.
Could anybody help? pls, Its bit urgent....
Hello,
I ran the application. I am able to close the documents of the XamDockManager no matter whether they are floating, inside the DocumentContentHost or docked. I am testing this against the latest service release for 10.2 (2001).
Thanks for your reply. Our version no. is 10.2.20102.1014
But the 'x' button still remains disable. Please refer the screenshot attached
I have seen such behavior in another scenario. Please test the same suggestion as the one in this forum thread - call the CommandManager->InvalidateRequerySuggested and the close button should call the Close commands CanExecute.
Alex,
Thanks for the solution. But can I get a sample piece of code on where to call
CommandManager.InvalidateRequerySuggested();
Thanks in Advance.
- Arthi
Arthi,
I should have specified that in my previous response. You can try with the PaneDragEnded event as you are dragging the document out of the DocumentContentHost and floating it.
Is there any solution to enable the 'close' button automatically without having any additional events
Thanks & Regards,
Arthi
Aziz, I cannot tell what problem you are seeing from your description. Please provide a sample that demonstrates the problem and we can look into this further. The original issue had to do with the fact that the close command is a routed command like all routed commands, the CanExecute is only evaluated when someone calls InvalidateRequerySuggested which happens implicitly by the WPF framework when you press a key or the mouse button down but otherwise would need to be explicitly invoked. I'm assuming that the AllowClose of the panes in your sample is true.
I am having similar issue. I tried calling the CommandManager.InvalidateRequerySuggested() and it is not working. Still could not close the window when it is in floating mode.
I have called the method in the construstor. I am using version 10.2. It was working fine previously with earlier version of infragistics.
CAN ANYONE FROM IFRAGISTICS SUPPORT TEAM HELPUS.
Thanks,
Aziz