Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
ActivePane is null after restoring a ContentPane from minimized to normal state
posted

Hello,

is this correct behavior?

<Window x:Class="WpfApplication6.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:igWPF="http://schemas.infragistics.com/xaml/wpf"
        Title="MainWindow" Height="600" Width="800" WindowState="Maximized">

        <igWPF:XamDockManager AllowMinimizeFloatingWindows="True" AllowMaximizeFloatingWindows="True" x:Name="aa">
            <igWPF:XamDockManager.Panes>
                <igWPF:SplitPane igWPF:XamDockManager.InitialLocation="DockedLeft">
                    <igWPF:ContentPane Header="FloatingWindowTest">
                        <TextBox Text="{Binding Path=ActivePane.Header, ElementName=aa}" />
                    </igWPF:ContentPane>
                </igWPF:SplitPane>
            </igWPF:XamDockManager.Panes>
        </igWPF:XamDockManager>

</Window>

  1. Paste this into MainWindow.xaml of a blank WPF project.
  2. Run app
  3. Float the pane
  4. Minimize the floating window
  5. Restore the floating window

ActivePane is null after step 5, probably because the ToolWindow has focus and not the ContentPane.

Is this the way it should be (I would expect the ContentPane inside the window to receive focus)?
If yes, is there an easy way to automatically forward the focus to the ContentPane? (PaneToolWindow doesn't have a StateChanged event as far as I can see).

BTW, if I run the same procedure, but maximize and demaximize the floating window, everything is OK. The ContentPane doesn't lose focus.

  • 22015
    posted

    Hello Tjark,

     I have logged this behavior with our developers in our tracking system, with an issue ID of 143484.  I have also created a support ticket on your behalf with number CAS-117269-P0Z5P8 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.