Bug Report T313174
Visible to All Users

DockLayoutManager doesn't properly focus its embedded elements

created 9 years ago

[DevExpress Support Team: CLONED FROM T313092: Keyboard Focus is broken when selecting panels]
When you select panels in a docklayoutmanager, the keyboard focus does not go to the inner content of the panels.

This was working in version 15.1.7.

Since I have the source code, the reason is that you've switched the LayoutPanel to using a new property called ContentPresenter. In version 15.1.7, you were using the Control property. Unfortunately, all your keyboard focus code is still passing in the Control property value as the root element to search for a focusable element. Control property now returns null.

Show previous comments (1)
PR PR
Paul Raymond 1 9 years ago

    You aren't using the MVVM technique of creating panels. Create view models of your views, and use the IMVVMDockingProperties interface.

    PR PR
    Paul Raymond 1 9 years ago

      Similar sample to all the ones I've submitted in the past. Please use for testing :)
      Notice when you select the Properties panel, the button does not auto-focus. In the previous versions, it would auto-focus. Also in the previous versions, the Explorer panel would be auto-selected initially. Now it is not. And it would be really nice if you also fixed this bug: If you have the button focused (orange border), and click on the Suite2 tab, then click back on the Suite1 tab, the button should still have keyboard focus.

      DevExpress Support Team 9 years ago

        Thank you for the cooperation, Paul. The provided sample project helped me replicate the focusing issues, so I have forward this thread to our developers for further research. They will examine it and provide a solution. Once a hotfix is available, we will update this thread.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.