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.
DockLayoutManager enters the CustomizationMode automatically upon restoring a layout from xml
Answers approved by DevExpress Support
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.
- v15.1.8Download Official Update
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>
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.
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.