When I use a XamDockManager as child of ContentPane the unpinned tab close / fly-in once any control is used on the pane - the parent XamDockManager unpinned pane work as expected is there a workaround for this? Here is sample which illustrates:
<igDock:XamDockManager Name="dataGridDockManager" FlyoutAnimation="Fade" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" >
<igDock:XamDockManager.Panes>
<igDock:SplitPane>
<igDock:TabGroupPane>
<igDock:ContentPane igDock:XamDockManager.InitialLocation="DockedLeft" IsPinned="False" AllowClose="False" CloseButtonVisibility="Hidden"
Header="Parent XamDockManager Unpinned Tab Stays Open" >
<Grid Background="Red">
<StackPanel>
<TextBlock>Pane stays open after control until focus is moved outside pane</TextBlock>
<Button Height="25" Width="75">Press Me</Button>
<CheckBox Height="25" Width="75">Press Me</CheckBox>
<RadioButton Height="25" Width="75">Press Me</RadioButton>
</StackPanel>
</Grid>
</igDock:ContentPane>
</igDock:TabGroupPane>
</igDock:SplitPane>
<igDock:ContentPane IsPinned="True" AllowClose="False" CloseButtonVisibility="Hidden" MinWidth="700"
Header="Test Pane 4" >
<Grid Margin="20" Background="Gray" >
<Grid>
<TextBlock>Child XamDockManager</TextBlock>
<igDock:XamDockManager FlyoutAnimation="Fade" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
Header="Child XamDockManager Unpinned Tab Doesn't Stay Open" >
<TextBlock>Pane closes once any control is used</TextBlock>
<igDock:ContentPane IsPinned="True" AllowClose="False" CloseButtonVisibility="Hidden"
Header="Test Pane 4" MinWidth="600">
<Grid Background="Blue">
<TextBlock>Child XamDockManager Content</TextBlock>
</igDock:XamDockManager.Panes>
</igDock:XamDockManager>
Thanks
-Phil
Hello Phil,
I've managed to reproduce the behavior and found a work around it prevents keyboard interactions. The issue is that the content pane is losing focus. You can mark it handled so it won't auto close. I am looking into a better approach.
eg.
private void ContentPane_PreviewGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { e.Handled = true; }
{
e.Handled = true;
}
Let me know if you have any questions.
I have created a private case for you, CAS-182913-C5W1N3 and have logged a development issue, ID-235411, for our team to investigate this further. You could reach your case following the link bellow:
https://ko.infragistics.com/my-account/support-activity I will update you via the mentioned case, so if you have any further questions or comments please update your case.
I get this same issue when I have a XamPropertyGrid. When I expand or collapse a list of sub properties in the grid, the pane closes.
Hello Brian,
Development issue 235411 was fixed in the latest service releases for 16.2, 17.1, and 17.2. Out of curiosity, which specific version of Infragistics for WPF are you using? I have created a sample project against version 17.2.20172.2029 of Infragistics for WPF 2017 Volume 2, and I am currently unable to reproduce the behavior you are referring to with the XamPropertyGrid.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if you have any other questions or concerns on this matter.
PropGridFlyOutTest.zip
Brian, what is the exact version of 17.1 that you are using?
Andrew's sample was tested with the December service release of 17.2 which is version 17.2.20172.2029. The December service release for 17.1 is version 17.1.20171.2108.
Note that the expectation is that the fix is actually in the October Service release for 17.1 as well as 16.2. These version numbers are 17.1.20171.2073 and 16.2.20162.2237.
If you are using a version prior to 17.1.20171.2073, please upgrade to a later service release to get the fix. If you are using 17.1.20171.2073 or newer already, please provide us with the exact version so that we may test the version you are using.
I have tried your test app with the version of the DLLs we are using, which is v17.1. We are on Visual Studio 2017, .Net 4.6.1. I am able to reproduce the issue right away. I click on Pane 1 and then click on the "Buttons" expander and after a moment, the Pane 1 closes.
I then downloaded version 17.2 which we have not upgraded our products to and was not able to reproduce the issue. We will be moving to 17.2 for our products in the coming months, so it may no longer be an issue. Did you try with all three versions (16.2, 17.1 & 17.2) or just version 17.2?
Thanks.
Brian