DXSerializer.Serialize(DependencyObject, String, String, DXOptionsLayout, SerializationType) Method
Saves (serializes) the layouts of the specified container (or control) and all its child elements to a file. The method serializes the layouts of visual controls that exist in the application’s visual tree.
Namespace: DevExpress.Xpf.Core.Serialization
Assembly: DevExpress.Xpf.Core.v25.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
public static void Serialize(
DependencyObject root,
string path,
string appName = "",
DXOptionsLayout options = null,
SerializationType serializationType = SerializationType.Xml
)
Parameters
| Name | Type | Description |
|---|---|---|
| root | DependencyObject | A container (or a control) which layouts should be serialized. |
| path | String | The path to the file where the layouts of the specified container and its child elements are serialized. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| appName | String | String.Empty | The application name. |
| options | DXOptionsLayout | null | Settings that specify whether the child object layouts of the specified container should be serialized. |
| serializationType | DevExpress.Xpf.Core.Serialization.SerializationType | Xml | The serialization type. |
See Also