DXSerializer.Serialize(DependencyObject[], Stream, String, DXOptionsLayout, SerializationType) Method
Saves (serializes) the layouts of specified containers (or controls) and all their child elements to a Stream. 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[] dObjects,
Stream stream,
string appName = "",
DXOptionsLayout options = null,
SerializationType serializationType = SerializationType.Xml
)
Parameters
| Name | Type | Description |
|---|---|---|
| dObjects | DependencyObject[] | An array of containers (or controls) which layouts should be serialized. |
| stream | Stream | The Stream where the layouts of specified objects and their child elements are saved. |
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 specified containers should be serialized. |
| serializationType | DevExpress.Xpf.Core.Serialization.SerializationType | Xml | The serialization type. |
See Also