I have a content pane with a xamdatagrid as content. One of the columns in the grid is a button that opens a popup that allows a user to edit some information that is not displayed in the grid. When the user clicks in a textbox in the popup, the unpinnedcontentpane flys in. How do I prevent this? I tried wiring to executingcommand to cancel the flying, but this does not always fire. Thanks!
Hi,
You could set the ContentPane's IsPinned property to true
Here is a help link to Pin and Unpin a Pane.
http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamDockManager_Pin_and_Unpin_a_Pane.html
Sincerely, Matt Developer Support Engineer
Thanks, Matt. I could do that, but I don't want to, for 2 reasons.
1. When you pin and unpin a tab, its position in the tabcollection changes. I want the tabs to keep their initial position - or is there a way to do that? It is confusing to a user to have the tabs change positions.
2. It appears like a kludge to do that, and doesn't look professional.
Does your answer imply that there is no way to intercept a flyin and cancel it?
Thanks for your help...
HI,
I am attaching a sample application that will make the Pane Flyout during the button click.
I am using the ContentPane's ExecuteCommand method and passing it the Flyout command.
I also set the XamDockManager's FlyoutAnimation to Fade.
Here a help link to the ContentPaneCommands. http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=InfragisticsWPF4.DockManager.v10.3~Infragistics.Windows.DockManager.ContentPaneCommands_members.html
Hi Matt,
When I run the sample you provided and click on the button, the messagebox is displayed, and then the flyout closes. This is the behavior I would like to prevent. The pane autohides, but I cannot find a way to prevent it from auto hiding until I'm done with the popup.
Question 1: I do not want to pin the flyout pane as a workaround. If I do, and then unpin it, the tab changes position to the end of the tab collection. Is there a way to prevent that from happening? This is a problem in general - the tab should remain in the same position when it is unpinned.
Question 2: If I wire to the ExecutingCommand event, it is not fired when the flyout pane auto hides, thus I cannot prevent the flyout from closing using commands. I cannot find another event that fires when the pane auto hides. Is there a property or event I can use to intercept the flying when I want?
Thanks
HI ,
I will submit a feature request for the following:
1) maintain the position of the pane in the unpinned area when the pane is pinned and unpinned
2) suppressing the flyin
Maintaining the postion of the ContentPanes in the unpinned area , when a ContentPane is pinned and unpinned, is not currently supported.
This request has been submitted as a feature request.
Thank you. In the meantime, is there a workaround to reposition a tab after the corresponding unpinned tab flyout is unpinned?