Skip to content
Merged
6 changes: 6 additions & 0 deletions WindowsForms/Docking-Manager/Serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ Me.dockingManager1.LoadDesignerDockState()

{% endtabs %}

## Restore to current state

When the `DockingManager` load a saved layout using the [LoadDockState](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.DockingManager.html#Syncfusion_Windows_Forms_Tools_DockingManager_LoadDockState) method, the process may fail if an error occurs during deserialization. In such cases, the saved layout is not applied, and the current docking layout remains unchanged to ensure a consistent user experience.

The LoadDockState method returns `true` when the layout is successfully loaded and applied. If loading fails, the method returns `false`, and no changes are made to the existing layout.

## Serialize dynamically added children

By default, the docking manager cannot deserialize its saved layout properly, when its child collection is modified after the DockState is saved.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions WindowsForms/Menu/Adding-menu-items-via-designer.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ The [ParentBarItem](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windo

![ParentBarItem](Adding-menu-items-via-designer-images/parentBarItem.gif)

### Arrange controls through drag and drop within form

`ParentBarItem` can be dragged and dropped into a custom form through the `Customize` dialog. This functionality simplifies the process of adding and organizing bar items within the application.

![ParentBarItemNetCore](Adding-menu-items-via-designer-images/parentBarItemNetCore.gif)

Note: This UI is only applicable for `.NET Core`.

## Adding drop down item

The [DropDownBarItem](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem.html) is a type of bar item, which will display a popup menu when clicked. A custom control can also be loaded and displayed when the menu item is clicked. This can be done by assigning the required component to the [PopupControlContainer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.DropDownBarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_DropDownBarItem_PopupControlContainer) property of the drop down bar item.
Expand Down