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
330
ContentPane FocusScope issues
posted

Hello,

We have a requirement that all the pane's share the same focus scope. This is so that we don't have ribbon contextual groups showing up from multiple logical scopes across different panes that all have focus. 

Setting FocusManager.IsFocusScope="False" on the ContentPane resolves this issue for us, however, it introduces a new issue. When the window is floated, you can no longer tab through controls.  I have verified this is still an issue in 14.2. Anyone how I might have floated pane's share the same focus scope? I thought maybe overriding GetUIParentCore to return the XamDockManager, but that did not resolve it.

Example xaml that demonstrates the issue:

<Window x:Class="Xam_DockManagerTest.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      mc:Ignorable="d"
      d:DesignHeight="500" d:DesignWidth="700"
      Title="Floating"
      xmlns:igDock="http://infragistics.com/DockManager">
    <igDock:XamDockManager Theme="IGTheme">
        <igDock:XamDockManager.Panes>
            <igDock:SplitPane igDock:XamDockManager.InitialLocation="DockableFloating"
                              igDock:XamDockManager.FloatingLocation="550,200"
                              SplitterOrientation="Vertical">
                <igDock:TabGroupPane>
                    <igDock:ContentPane x:Name="floatingDockable1"
                                        MinHeight="75"
                                        FocusManager.IsFocusScope="False">
                        <StackPanel Orientation="Vertical">
                            <TextBox Text="Test1"/>
                            <TextBox Text="Test2"/>
                            <TextBox Text="Test3"/>
                        </StackPanel>
                    </igDock:ContentPane>
                </igDock:TabGroupPane>
            </igDock:SplitPane>
        </igDock:XamDockManager.Panes>
    </igDock:XamDockManager>
</Window>