Bug Report T299369
Visible to All Users

DockLayoutManager enters the CustomizationMode automatically upon restoring a layout from xml

created 9 years ago

Restoring DockLayoutManager layout from a saved layout xml file puts the DockLayoutManager in a customization mode such that you can hover you mouse over the space between controls and get the resize indicator and resize the LayoutControlItems.  The attached sample will allow you to reproduce the problem by first saving a layout to the root of C:\ and then close the app.  Upon loading the MainWindow we'll restore the layout xml from disk.  The only mitigation for this I can find is to call BeginCustomization() and then EndCutomization() as calling only EndCustomization() does not leave this strange mode.

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.

    created 9 years ago

    Hi Adam,
    The resizing feature is enabled by default and doesn't relate to layout restoring. You can disable it, using the following implicit style:

    XAML
    <Style TargetType="dxd:LayoutGroup"> <Setter Property="AllowSplitters" Value="False" /> </Style>
      Comments (2)

        How then can opening and closing the customization window disable this "resizing feature"? (equivalent to BeginCustomization() and EndCustomization()). Also, if this is not related to layout restoring, why does the behavior only exist when restoring layout?  Have you commented out the layout restoration code that I placed in the sample to see that resizing is not enabled by default? Please explain how this makes sense.

        DevExpress Support Team 9 years ago

          Hi Adam,
          It looks like I understood you incorrectly. I tested your sample once again and reproduces the issue. I have passed this ticket to our developers for further research. Please stay tuned. We will notify you as soon as we make any progress.

          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.