DXSerializer.SerializeSingleObject(DependencyObject, Stream, String, SerializationType) Method
Saves (serializes) the layouts of the specified container (or control) and all its 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 SerializeSingleObject(
DependencyObject d,
Stream stream,
string appName = "",
SerializationType serializationType = SerializationType.Xml
)
Parameters
| Name | Type | Description |
|---|---|---|
| d | DependencyObject | A container (or a control) which layouts should be serialized. |
| stream | Stream | The Stream where the layouts of the specified object and its child elements are saved. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| appName | String | String.Empty | The application name. |
| serializationType | DevExpress.Xpf.Core.Serialization.SerializationType | Xml | The serialization type. |
See Also